Added implementations for AtkObject:property-change support. Fixed some (but not...
[platform/core/uifw/at-spi2-atk.git] / cspi / spi.c
index e895f90..2fe8f87 100644 (file)
@@ -9,8 +9,12 @@ static Accessible *
 Obj_Add (Accessible object)
 {
   /* TODO: keep list of live object refs */
-  Accessible *oref = g_malloc (sizeof (Accessible));
-  *oref = object;
+  Accessible *oref = NULL;
+  if (!CORBA_Object_is_nil (object, &ev))
+  {
+         oref = g_malloc (sizeof (Accessible));
+         *oref = object;
+  }
   return oref;
 }