mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 00:29:21 +00:00
Fix bug in Wrapper::setCppPtrFromC where the cppObject was not really assigned.
This commit is contained in:
parent
cfbb66457f
commit
77397eab83
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue