diff options
author | chanywa <cbible.kim@samsung.com> | 2017-04-03 12:38:06 +0900 |
---|---|---|
committer | chanywa <cbible.kim@samsung.com> | 2017-04-03 12:38:06 +0900 |
commit | dda584d0f73fe2cb02db844c6ee123ebcc361bc3 (patch) | |
tree | 3bdeed8df3f4b0505a4d8f6e372701fc85c2df5e | |
parent | 33a1a852c6be75e513fc2863b159ccae4b33cf7d (diff) | |
download | maps-accepted/tizen_tv.tar.gz maps-accepted/tizen_tv.tar.bz2 maps-accepted/tizen_tv.zip |
fixed that a map object on the mapview is removed after clickedsubmit/tizen/20170403.093537accepted/tizen/unified/20170403.131747accepted/tizen/tv/20170403.131704accepted/tizen/mobile/20170403.131652accepted/tizen/ivi/20170403.131727accepted/tizen/common/20170403.190610accepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_common
Change-Id: I6997b05c4a6554da4737349990e0362d319dd28a
-rwxr-xr-x | Tizen.Maps/Interop/Interop.SafeMapsHandle.cs | 5 | ||||
-rwxr-xr-x | Tizen.Maps/Interop/Interop.View.Event.Data.cs | 2 | ||||
-rwxr-xr-x | Tizen.Maps/Interop/Interop.View.Object.cs | 4 | ||||
-rw-r--r-- | packaging/csapi-maps.spec | 2 |
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 |