Fixing csharp wrapper

This commit is contained in:
Erwan Croze 2018-03-12 13:56:58 +01:00
parent 375b821b9f
commit 455e0b71e5

View file

@ -183,7 +183,11 @@ namespace Linphone
obj.nativePtr = ptr;
obj.handle = GCHandle.Alloc(obj, GCHandleType.WeakTrackResurrection);
objPtr = GCHandle.ToIntPtr(obj.handle);
belle_sip_object_data_set(ptr, "cs_obj", objPtr, IntPtr.Zero);
#if WINDOWS_UWP
belle_sip_object_data_set(ptr, "cs_obj", objPtr, IntPtr.Zero);
#else
belle_sip_object_data_set(ptr, "cs_obj", objPtr, null);
#endif
return obj;
}