diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-07-01 13:06:17 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-07-01 13:06:17 -0500 |
commit | 604640ebeca2fe1b2eb4aa475dbb4221dd8aeb72 (patch) | |
tree | 66e8c71870c0ab77a2f90de91270596c950bf23b | |
parent | 73a9ac42d15b01c6807eb5bdaee0c24431e7e539 (diff) | |
download | ayatana-indicator-session-604640ebeca2fe1b2eb4aa475dbb4221dd8aeb72.tar.gz ayatana-indicator-session-604640ebeca2fe1b2eb4aa475dbb4221dd8aeb72.tar.bz2 ayatana-indicator-session-604640ebeca2fe1b2eb4aa475dbb4221dd8aeb72.zip |
in src/backend-dbus/users.c's set_logins(), fix ref/unref semantics of the hashtable argument
-rw-r--r-- | src/backend-dbus/users.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend-dbus/users.c b/src/backend-dbus/users.c index b5a6d32..caf6403 100644 --- a/src/backend-dbus/users.c +++ b/src/backend-dbus/users.c @@ -130,7 +130,7 @@ set_logins (IndicatorSessionUsersDbus * self, GHashTable * logins) gpointer uid; GHashTableIter iter; - self->priv->logins = logins; + self->priv->logins = g_hash_table_ref (logins); /* fire 'user changed' event for users who logged out */ g_hash_table_iter_init (&iter, old_logins); @@ -420,6 +420,7 @@ on_login1_manager_session_list_ready (GObject * o, set_is_live_session_flag (self, is_live_session); set_logins (self, logins); + g_hash_table_unref (logins); g_variant_unref (sessions); } } |