diff options
author | Mike Gorse <mgorse@suse.com> | 2016-05-22 07:15:21 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2016-05-22 07:17:00 -0500 |
commit | 60a9910b63159b24c4c4ba6a7e5e0a2e929cbe45 (patch) | |
tree | dd6bddf1568d956b53abfc84974de20f41a28d2d | |
parent | 23ee550ac865c656ab08b7977a094ec5ee99edad (diff) | |
download | at-spi2-core-60a9910b63159b24c4c4ba6a7e5e0a2e929cbe45.tar.gz |
ref_accessible_desktop: don't unref reply until we're finished with it
Oops!
-rw-r--r-- | atspi/atspi-misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c index 83d3f969..1ec9be15 100644 --- a/atspi/atspi-misc.c +++ b/atspi/atspi-misc.c @@ -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); } |