atk-adaptor: plug a refcount leak
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 2 Jul 2012 20:14:12 +0000 (16:14 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 5 Jul 2012 14:20:05 +0000 (10:20 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=679285

atk-adaptor/adaptors/accessible-adaptor.c

index 25d7823..77aacbb 100644 (file)
@@ -337,6 +337,8 @@ impl_GetRelationSet (DBusConnection * bus,
     }
   dbus_message_iter_close_container (&iter, &iter_array);
 oom:
+  if (set)
+    g_object_unref (set);
   // TODO: handle out of memory */
   return reply;
 }