aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-04-14 12:52:48 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-04-14 12:52:48 -0500
commit678a41767787d26f624d38bd573e8c5a36fc72e0 (patch)
treee139636403d8753b4119ed23e7b15cc7cac57269 /libdbusmenu-glib
parentc45a8fe03a7b3653af2d2f8586668dcb3c21899b (diff)
downloadlibdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.tar.gz
libdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.tar.bz2
libdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.zip
fix leaky DbusmenuServer.priv.dbusobject
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 9e5ef0c..f47bb5d 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -463,6 +463,11 @@ dbusmenu_server_finalize (GObject *object)
{
DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(object);
+ if (priv->dbusobject != NULL) {
+ g_free (priv->dbusobject);
+ priv->dbusobject = NULL;
+ }
+
if (priv->icon_dirs != NULL) {
g_strfreev(priv->icon_dirs);
priv->icon_dirs = NULL;