accessible: remove an unneeded unref
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 27 Aug 2013 14:00:00 +0000 (16:00 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 27 Aug 2013 14:06:03 +0000 (16:06 +0200)
That unref is done inside an if that starts with a !parent condition, so
unrefing it doesn't makes sense

https://bugzilla.gnome.org/show_bug.cgi?id=706893

atspi/atspi-accessible.c

index 0fff4fb..95ac311 100644 (file)
@@ -672,7 +672,6 @@ atspi_accessible_get_application (AtspiAccessible *obj, GError **error)
       if (root)
       {
         g_object_unref (obj);
-        g_object_unref (parent);
         if (atspi_accessible_get_role (root, NULL) == ATSPI_ROLE_DESKTOP_FRAME)
         {
           g_object_unref (root);