Commit 77397eab authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix bug in Wrapper::setCppPtrFromC where the cppObject was not really assigned.

parent cfbb6645
......@@ -120,9 +120,9 @@ public:
T *oldPtr = reinterpret_cast<T *>(static_cast<WrappedClonableObject<T> *>(object)->cppPtr);
if (oldPtr != cppPtr) {
delete oldPtr;
T *cppObject = static_cast<WrappedClonableObject<T> *>(object)->cppPtr;
cppObject = new T(*cppPtr);
cppObject->setProperty("LinphonePrivate::Wrapper::cBackPtr", object);
T **cppObject = &static_cast<WrappedClonableObject<T> *>(object)->cppPtr;
*cppObject = new T(*cppPtr);
(*cppObject)->setProperty("LinphonePrivate::Wrapper::cBackPtr", object);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment