Fix crash temporarily, leak instead

This commit is contained in:
Sylvain Berfini 2017-11-06 17:39:09 +01:00
parent ab07fa2b2f
commit f47dd800b8

View file

@ -249,8 +249,9 @@ public:
>
static void signalCppPtrDestruction (CppType *cppObject) {
void *value = cppObject->getCBackPtr();
if (value && static_cast<WrappedBaseObject<CppType> *>(value)->owner == WrappedObjectOwner::Internal)
belle_sip_object_unref(value);
//TODO
/*if (value && static_cast<WrappedBaseObject<CppType> *>(value)->owner == WrappedObjectOwner::Internal)
belle_sip_object_unref(value);*/
}
// ---------------------------------------------------------------------------