diff options
author | Ted Gould <ted@canonical.com> | 2009-05-25 23:15:16 +0200 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-25 23:15:16 +0200 |
commit | 59e8bba4ca5c9164fcbc886af94e6e2c627d523e (patch) | |
tree | 19bf1564b5690d0b3aac2aaddf8b55b2a3dd3724 | |
parent | 2d5dc7c1f0be1da109fd6a19a2f6f4db70bc2f1a (diff) | |
download | libdbusmenu-59e8bba4ca5c9164fcbc886af94e6e2c627d523e.tar.gz libdbusmenu-59e8bba4ca5c9164fcbc886af94e6e2c627d523e.tar.bz2 libdbusmenu-59e8bba4ca5c9164fcbc886af94e6e2c627d523e.zip |
Unref'ing root when we dispose
-rw-r--r-- | libdbusmenu-glib/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index f21f721..61f8c34 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -169,6 +169,11 @@ dbusmenu_client_dispose (GObject *object) } priv->session_bus = NULL; + if (priv->root != NULL) { + g_object_unref(G_OBJECT(priv->root)); + priv->root = NULL; + } + G_OBJECT_CLASS (dbusmenu_client_parent_class)->dispose (object); return; } |