seed r66 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r66 - trunk/libseed
- Date: Mon, 3 Nov 2008 02:44:42 +0000 (UTC)
Author: racarr
Date: Mon Nov 3 02:44:42 2008
New Revision: 66
URL: http://svn.gnome.org/viewvc/seed?rev=66&view=rev
Log:
Fix double free. When we got rid of seed_struct_privates, we switched to
storing the
struct directly as the JSCore private, which javascript core frees on
the object finalization. So, we no longer need to free in
seed_finalize_struct.
Modified:
trunk/libseed/seed-structs.c
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Mon Nov 3 02:44:42 2008
@@ -23,11 +23,6 @@
JSClassRef seed_struct_class = 0;
-static void seed_struct_finalize(JSObjectRef strukt)
-{
- g_free(JSObjectGetPrivate(strukt));
-}
-
JSClassDefinition gobject_struct_def = {
0, /* Version, always 0 */
0,
@@ -36,7 +31,7 @@
NULL, /* Static Values */
NULL, /* Static Functions */
NULL,
- seed_struct_finalize, /* Finalize */
+ NULL,
NULL, /* Has Property */
0,
NULL, /* Set Property */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]