[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Mar 5 22:30:13 UTC 2007
SVN commit 639752 by rdale:
* Free up some GCHandles when they're finished with
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +1 -0 Qyoto.cs
M +4 -0 qyoto.cpp
--- trunk/playground/bindings/kimono/ChangeLog #639751:639752
@@ -1,3 +1,7 @@
+2007-03-05 Richard Dale <rdale at foton.es>
+
+ * Free up some GCHandles when they're finished with
+
2007-03-03 Arno Rehn <arno at arnorehn.de>
* Added QModelIndex.InternalPointer() and QAbstractItemModel.CreateIndex()
--- trunk/playground/bindings/kimono/Qyoto.cs #639751:639752
@@ -461,6 +461,7 @@
}
QMetaObject res = (QMetaObject)((GCHandle) metaObject).Target;
+ ((GCHandle) metaObject).Free();
metaObjects.Add(t.Name, res);
return res;
}
--- trunk/playground/bindings/kimono/qyoto.cpp #639751:639752
@@ -1268,6 +1268,7 @@
smokeqyoto_object *o = value_obj_info(obj);
QModelIndex *modelIndex = (QModelIndex*) o->ptr;
void *ptr = modelIndex->internalPointer();
+ (*FreeGCHandle)(obj);
return ptr;
}
@@ -1550,8 +1551,11 @@
// was constructed at runtime
smokeqyoto_object* o = value_obj_info(parentMeta);
parent = (QMetaObject *) o->ptr;
+ (*FreeGCHandle)(parentMeta);
}
+ (*FreeGCHandle)(obj);
+
char* my_stringdata = new char[stringdata_count];
memcpy(my_stringdata, stringdata, stringdata_count * sizeof(char));
More information about the Kde-bindings
mailing list