summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchanywa <cbible.kim@samsung.com>2017-04-03 12:38:06 +0900
committerchanywa <cbible.kim@samsung.com>2017-04-03 12:38:06 +0900
commitdda584d0f73fe2cb02db844c6ee123ebcc361bc3 (patch)
tree3bdeed8df3f4b0505a4d8f6e372701fc85c2df5e
parent33a1a852c6be75e513fc2863b159ccae4b33cf7d (diff)
downloadmaps-accepted/tizen_ivi.tar.gz
maps-accepted/tizen_ivi.tar.bz2
maps-accepted/tizen_ivi.zip
Change-Id: I6997b05c4a6554da4737349990e0362d319dd28a
-rwxr-xr-xTizen.Maps/Interop/Interop.SafeMapsHandle.cs5
-rwxr-xr-xTizen.Maps/Interop/Interop.View.Event.Data.cs2
-rwxr-xr-xTizen.Maps/Interop/Interop.View.Object.cs4
-rw-r--r--packaging/csapi-maps.spec2
4 files changed, 9 insertions, 4 deletions
diff --git a/Tizen.Maps/Interop/Interop.SafeMapsHandle.cs b/Tizen.Maps/Interop/Interop.SafeMapsHandle.cs
index 43ae47c..0ecc7e5 100755
--- a/Tizen.Maps/Interop/Interop.SafeMapsHandle.cs
+++ b/Tizen.Maps/Interop/Interop.SafeMapsHandle.cs
@@ -45,6 +45,11 @@ internal static partial class Interop
return ctor(NativeGet(getter, propertyName));
}
+ internal static T NativeGet<T>(GetterMethod<IntPtr> getter, Func<IntPtr, bool, T> ctor, bool hasOwnership, [CallerMemberName] string propertyName = "") where T : SafeMapsHandle
+ {
+ return ctor(NativeGet(getter, propertyName), hasOwnership);
+ }
+
internal static string NativeGet(GetterMethod<string> getter, [CallerMemberName] string propertyName = "")
{
string value;
diff --git a/Tizen.Maps/Interop/Interop.View.Event.Data.cs b/Tizen.Maps/Interop/Interop.View.Event.Data.cs
index 003052c..c1cde38 100755
--- a/Tizen.Maps/Interop/Interop.View.Event.Data.cs
+++ b/Tizen.Maps/Interop/Interop.View.Event.Data.cs
@@ -131,7 +131,7 @@ internal static partial class Interop
internal ViewObjectHandle ViewObject
{
- get { return NativeGet(this.GetObject, ViewObjectHandle.Create); }
+ get { return NativeGet(this.GetObject, ViewObjectHandle.Create, false ); }
}
// event_data will be released automatically after this callback is terminated.
diff --git a/Tizen.Maps/Interop/Interop.View.Object.cs b/Tizen.Maps/Interop/Interop.View.Object.cs
index ed10c0a..af2834f 100755
--- a/Tizen.Maps/Interop/Interop.View.Object.cs
+++ b/Tizen.Maps/Interop/Interop.View.Object.cs
@@ -65,9 +65,9 @@ internal static partial class Interop
{
}
- internal static ViewObjectHandle Create(IntPtr nativeHandle)
+ internal static ViewObjectHandle Create(IntPtr nativeHandle, bool needToRelease)
{
- return new ViewObjectHandle(nativeHandle, true);
+ return new ViewObjectHandle(nativeHandle, needToRelease);
}
}
}
diff --git a/packaging/csapi-maps.spec b/packaging/csapi-maps.spec
index ba5bf09..627258d 100644
--- a/packaging/csapi-maps.spec
+++ b/packaging/csapi-maps.spec
@@ -9,7 +9,7 @@
Name: csapi-maps
Summary: Tizen Map Service API for C#
Version: 1.0.9
-Release: 2
+Release: 3
Group: Development/Libraries
License: Apache-2.0
URL: https://www.tizen.org