seed r291 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r291 - trunk/libseed
- Date: Sat, 22 Nov 2008 01:02:31 +0000 (UTC)
Author: racarr
Date: Sat Nov 22 01:02:31 2008
New Revision: 291
URL: http://svn.gnome.org/viewvc/seed?rev=291&view=rev
Log:
Add seed_boxed_finalize.
Modified:
trunk/libseed/seed-structs.c
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Sat Nov 22 01:02:31 2008
@@ -39,6 +39,22 @@
g_free(priv);
}
+static void seed_boxed_finalize(JSObjectRef object)
+{
+ seed_struct_privates * priv =
+ (seed_struct_privates *) JSObjectGetPrivate(object);
+ GType type;
+ GIRegisteredTypeInfo * info =
+ (GIRegisteredTypeInfo *)g_base_info_get_type(priv->info);
+
+ type = g_registered_type_info_get_g_type(info);
+ g_base_info_unref((GIBaseInfo *) info);
+
+ g_boxed_free(type, priv->pointer);
+
+ g_free(priv);
+
+}
JSClassDefinition seed_pointer_def = {
0, /* Version, always 0 */
@@ -88,7 +104,7 @@
NULL, /* Static Values */
NULL, /* Static Functions */
NULL,
- seed_pointer_finalize,
+ seed_boxed_finalize,
NULL, /* Has Property */
0,
NULL, /* Set Property */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]