seed r692 - trunk/libseed



Author: racarr
Date: Fri Jan  9 06:05:05 2009
New Revision: 692
URL: http://svn.gnome.org/viewvc/seed?rev=692&view=rev

Log:
Fix GSList/GList segfaulting with GI_TYPE_TAG_VOID

Modified:
   trunk/libseed/seed-types.c

Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c	(original)
+++ trunk/libseed/seed-types.c	Fri Jan  9 06:05:05 2009
@@ -195,6 +195,7 @@
 
 	switch (type_tag)
 	{
+		// TODO: FIXME: Leaaaks?
 	case GI_TYPE_TAG_UTF8:
 		return seed_release_arg(GI_TRANSFER_EVERYTHING,
 								type_info, type_tag, arg);
@@ -685,6 +686,8 @@
 				ival =
 					(JSValueRef) seed_gi_argument_make_js(ctx, &larg,
 														  list_type, exception);
+				if (!ival)
+					ival = JSValueMakeNull(ctx);
 				JSObjectSetPropertyAtIndex(ctx, ret, i, ival, NULL);
 				i++;
 			}
@@ -710,6 +713,8 @@
 				ival =
 					(JSValueRef) seed_gi_argument_make_js(ctx, &larg,
 														  list_type, exception);
+				if (!ival)
+					ival = JSValueMakeNull(ctx);
 				JSObjectSetPropertyAtIndex(ctx, ret, i, ival, NULL);
 				i++;
 			}



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