This commit removes annoying message from glib2:
"GLib-CRITICAL g_hash_table_unref: assertion 'hash_table != NULL'
failed"
Change-Id: Idf9eaaebc03f0b0fe8c6275c625d902e3361343a
{
message = _atspi_dbus_call_partial (obj, atspi_interface_accessible,
"GetAttributes", error, "");
- g_hash_table_unref(obj->attributes);
+ if (obj->attributes)
+ g_hash_table_unref(obj->attributes);
+
obj->attributes = _atspi_dbus_return_hash_from_message (message);
_atspi_accessible_add_cache (obj, ATSPI_CACHE_ATTRIBUTES);
}