[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Feb 12 18:51:39 UTC 2007
SVN commit 632948 by rdale:
* Additionally, in a destructor free the smokeqyoto_object struct, and
set the pointer to it in the C# instance to 0.
CCMAIL: kde-bindings at kde.org
M +2 -0 ChangeLog
M +4 -2 qyoto.cpp
--- trunk/playground/bindings/kimono/ChangeLog #632947:632948
@@ -6,6 +6,8 @@
as a cache instead.
* When a destructor has been called, remove the item from the weak
reference map
+ * Additionally, in a destructor free the smokeqyoto_object struct, and
+ set the pointer to it in the C# instance to 0.
2007-02-11 Richard Dale <rdale at foton.es>
--- trunk/playground/bindings/kimono/qyoto.cpp #632947:632948
@@ -635,7 +635,8 @@
}
} else if (isDestructor()) {
unmapPointer(_o, _o->classId, 0);
- _o->ptr = 0;
+ (*SetSmokeObject)(_target, 0);
+ free_smokeqyoto_object(_o);
}
}
@@ -890,7 +891,8 @@
return;
}
unmapPointer(o, o->classId, 0);
- o->ptr = 0;
+ (*SetSmokeObject)(obj, 0);
+ free_smokeqyoto_object(o);
// delete the previously created QSignalSpy
if (strcmp("QApplication", smoke->className(classId)) == 0
More information about the Kde-bindings
mailing list