[seed] Add an assertion in seed_value_to_gobject, should



commit ef2117280b8ddbbaa2ec76f188e3ce25fbc9d859
Author: Robert Carr <racarr mireia (none)>
Date:   Mon Mar 2 21:44:29 2009 -0500

    Add an assertion in seed_value_to_gobject, should be helpful in catching a few memory bugs that sometimes pop up
---
 libseed/seed-types.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index e04168f..53fcfe7 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -1730,6 +1730,7 @@ seed_value_to_object (JSContextRef ctx,
     }
 
   gobject = (GObject *) JSObjectGetPrivate ((JSObjectRef) val);
+  g_assert(G_IS_OBJECT(gobject));
 
   return gobject;
 }



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