seed r360 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r360 - trunk/libseed
- Date: Fri, 28 Nov 2008 05:06:49 +0000 (UTC)
Author: racarr
Date: Fri Nov 28 05:06:49 2008
New Revision: 360
URL: http://svn.gnome.org/viewvc/seed?rev=360&view=rev
Log:
Finalize handler for gobject methods...more of a formality than anything as methods are tied to prototypes and there is no scope on imports right now...
Modified:
trunk/libseed/seed-engine.c
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Fri Nov 28 05:06:49 2008
@@ -242,6 +242,14 @@
return seed_value_from_int(ctx, this->ref_count, exception);
}
+static void
+seed_gobject_method_finalize(JSObjectRef method)
+{
+ GIBaseInfo * info = (GIBaseInfo *)JSObjectGetPrivate(method);
+ if (info)
+ g_base_info_unref(info);
+}
+
static JSValueRef
seed_gobject_method_invoked(JSContextRef ctx,
JSObjectRef function,
@@ -1110,7 +1118,7 @@
NULL, /* Static Values */
NULL, /* Static Functions */
NULL,
- NULL, /* Finalize */
+ seed_gobject_method_finalize, /* Finalize */
NULL, /* Has Property */
NULL, /* Get Property */
NULL, /* Set Property */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]