From 8a86a350d3f598596f86446babf98297966e88c0 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 13 May 2021 13:34:26 +0900 Subject: [PATCH] [Telephony][Non-ACR] Fix ReleaseCallList crash issue (#3031) Signed-off-by: Wootak Jung --- src/Tizen.Telephony/Interop/Interop.Call.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.Telephony/Interop/Interop.Call.cs b/src/Tizen.Telephony/Interop/Interop.Call.cs index f28db6d..360b361 100755 --- a/src/Tizen.Telephony/Interop/Interop.Call.cs +++ b/src/Tizen.Telephony/Interop/Interop.Call.cs @@ -36,7 +36,7 @@ internal static partial class Interop internal static extern Telephony.TelephonyError GetCallList(IntPtr handle, out uint count, out IntPtr callList); [DllImport(Libraries.Telephony, EntryPoint = "telephony_call_release_call_list")] - internal static extern Telephony.TelephonyError ReleaseCallList(uint count, IntPtr callList); + internal static extern Telephony.TelephonyError ReleaseCallList(uint count, ref IntPtr callList); [DllImport(Libraries.Telephony, EntryPoint = "telephony_call_get_handle_id")] internal static extern Telephony.TelephonyError GetHandleId(IntPtr callHandle, out uint handleId); @@ -76,7 +76,7 @@ internal static partial class Interop protected override bool ReleaseHandle() { - ReleaseCallList(Count, this.handle); + ReleaseCallList(Count, ref this.handle); this.SetHandle(IntPtr.Zero); return true; } -- 2.7.4