seed r256 - trunk/libseed



Author: racarr
Date: Wed Nov 12 08:41:14 2008
New Revision: 256
URL: http://svn.gnome.org/viewvc/seed?rev=256&view=rev

Log:
Remove useless ref/unref.


Modified:
   trunk/libseed/seed-types.c

Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c	(original)
+++ trunk/libseed/seed-types.c	Wed Nov 12 08:41:14 2008
@@ -87,15 +87,12 @@
     {
 	g_assert_not_reached();
     }
-    g_object_ref(object);
 
     g_object_set_data(object, "js-ref", (gpointer) js_ref);
 
     JSValueProtect(eng->context, js_ref);
     g_object_add_toggle_ref(object, seed_toggle_ref, (gpointer) js_ref);
 
-    g_object_unref(object);
-
     return js_ref;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]