[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Feb 12 18:18:56 UTC 2007


SVN commit 632937 by rdale:

* When a destructor has been called, remove the item from the weak 
  reference map

CCMAIL: kde-bindings at kde.org



 M  +2 -0      ChangeLog  
 M  +1 -2      qyoto.cpp  


--- trunk/playground/bindings/kimono/ChangeLog #632936:632937
@@ -4,6 +4,8 @@
 	  didn't work, and the value returned was always -1, even when it had been
 	  set to a value. So use a dictionary of type Dictionary<MethodInfo, int>
 	  as a cache instead.
+	* When a destructor has been called, remove the item from the weak 
+	  reference map
 
 2007-02-11  Richard Dale  <rdale at foton.es>
 
--- trunk/playground/bindings/kimono/qyoto.cpp #632936:632937
@@ -634,8 +634,8 @@
 				qapp_spy = new QSignalSpy(qApp, SIGNAL(aboutToQuit()));
 			}
 		} else if (isDestructor()) {
+			unmapPointer(_o, _o->classId, 0);
 			_o->ptr = 0;
-			_o->allocated = false;
 		}
 
     }
@@ -1185,7 +1185,6 @@
 	return set_obj_info("Qyoto.QVariant", vo);
 }
 
-
 bool QyotoRegisterResourceData(int flag, const unsigned char * s, const unsigned char *n, const unsigned char *d)
 {
 	qRegisterResourceData(flag, s, n, d);



More information about the Kde-bindings mailing list