ref_accessible_desktop: don't unref reply until we're finished with it
authorMike Gorse <mgorse@suse.com>
Sun, 22 May 2016 12:15:21 +0000 (07:15 -0500)
committerMike Gorse <mgorse@suse.com>
Sun, 22 May 2016 12:17:42 +0000 (07:17 -0500)
Oops!

atspi/atspi-misc.c

index 83d3f96..1ec9be1 100644 (file)
@@ -606,13 +606,14 @@ ref_accessible_desktop (AtspiApplication *app)
     get_reference_from_iter (&iter_array, &app_name, &path);
     add_app_to_desktop (desktop, app_name);
   }
-  dbus_message_unref (reply);
 
   /* Record the alternate name as an alias for org.a11y.atspi.Registry */
   bus_name_dup = g_strdup (dbus_message_get_sender (reply));
   if (bus_name_dup)
     g_hash_table_insert (app_hash, bus_name_dup, app);
 
+  dbus_message_unref (reply);
+
   return g_object_ref (desktop);
 }