Add a check for lack of memory
authorMike Gorse <mgorse@boston.site>
Thu, 17 Apr 2008 20:28:09 +0000 (16:28 -0400)
committerMike Gorse <mgorse@boston.site>
Thu, 17 Apr 2008 20:28:09 +0000 (16:28 -0400)
libspi/accessible.c

index 5828a8b93b3480292ca672a6920a0861c27d0da2..e27c71275645ecf9c09540fd245e1550cec5fefa 100644 (file)
@@ -139,6 +139,7 @@ impl_getChildren (DBusConnection * bus, DBusMessage * message,
     return spi_dbus_general_error (message);
   count = atk_object_get_n_accessible_children (object);
   reply = dbus_message_new_method_return (message);
+  if (!reply) goto oom;
   dbus_message_iter_init_append (reply, &iter);
   if (!dbus_message_iter_open_container
       (&iter, DBUS_TYPE_ARRAY, "o", &iter_array))