Change-Id: I117d7d12d0c2aa9f0ab32c239341ed2d91a5c14a
char *bus_name_dup;
DBusMessage *message;
DBusPendingCall *pending = NULL;
char *bus_name_dup;
DBusMessage *message;
DBusPendingCall *pending = NULL;
message = dbus_message_new_method_call (bus_name, atspi_path_root,
atspi_interface_application, "GetApplicationBusAddress");
message = dbus_message_new_method_call (bus_name, atspi_path_root,
atspi_interface_application, "GetApplicationBusAddress");
- dbus_connection_send_with_reply (app->bus, message, &pending, 2000);
+ result = dbus_connection_send_with_reply (app->bus, message, &pending, 2000);
dbus_message_unref (message);
dbus_message_unref (message);
+ if (!result || !pending)
{
g_hash_table_remove (app_hash, bus_name_dup);
return NULL;
{
g_hash_table_remove (app_hash, bus_name_dup);
return NULL;