seed r238 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r238 - trunk/libseed
- Date: Tue, 11 Nov 2008 09:14:57 +0000 (UTC)
Author: racarr
Date: Tue Nov 11 09:14:56 2008
New Revision: 238
URL: http://svn.gnome.org/viewvc/seed?rev=238&view=rev
Log:
Handle null callbacks.
Modified:
trunk/libseed/seed-types.c
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Tue Nov 11 09:14:56 2008
@@ -297,6 +297,11 @@
}
else if (interface_type == GI_INFO_TYPE_CALLBACK)
{
+ if (JSValueIsNull(eng->context, value))
+ {
+ arg->v_pointer = NULL;
+ break;
+ }
if (JSValueIsObjectOfClass(eng->context,
value, gobject_method_class))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]