[glib] Make g_dbus_error_unregister_error work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Make g_dbus_error_unregister_error work
- Date: Sat, 7 Aug 2010 22:57:54 +0000 (UTC)
commit 51ad83f7119bcf43d5e9b6b89fd3f33bd9ab1e3d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 7 18:56:12 2010 -0400
Make g_dbus_error_unregister_error work
gio/gdbuserror.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbuserror.c b/gio/gdbuserror.c
index 64a6bc6..5e438ef 100644
--- a/gio/gdbuserror.c
+++ b/gio/gdbuserror.c
@@ -433,10 +433,13 @@ g_dbus_error_unregister_error (GQuark error_domain,
g_warn_if_fail (g_hash_table_lookup (quark_code_pair_to_re, &pair) == NULL); /* check invariant */
goto out;
}
+
+ ret = TRUE;
+
g_warn_if_fail (g_hash_table_lookup (quark_code_pair_to_re, &(re->pair)) == re); /* check invariant */
g_warn_if_fail (g_hash_table_remove (quark_code_pair_to_re, &(re->pair)));
- g_warn_if_fail (g_hash_table_remove (dbus_error_name_to_re, re));
+ g_warn_if_fail (g_hash_table_remove (dbus_error_name_to_re, re->dbus_error_name));
/* destroy hashes if empty */
hash_size = g_hash_table_size (dbus_error_name_to_re);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]