seed r253 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r253 - trunk/libseed
- Date: Wed, 12 Nov 2008 08:08:59 +0000 (UTC)
Author: racarr
Date: Wed Nov 12 08:08:59 2008
New Revision: 253
URL: http://svn.gnome.org/viewvc/seed?rev=253&view=rev
Log:
Fix objects which are not floating but still initially unowned...
Modified:
trunk/libseed/seed-engine.c
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Wed Nov 12 08:08:59 2008
@@ -140,6 +140,8 @@
if (g_object_is_floating(gobject))
g_object_ref_sink(gobject);
+ else if (gobject->ref_count == 0)
+ g_object_ref(gobject);
if (!gobject)
ret = (JSObjectRef)JSValueMakeNull(eng->context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]