diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-04-14 12:52:48 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-04-14 12:52:48 -0500 |
commit | 678a41767787d26f624d38bd573e8c5a36fc72e0 (patch) | |
tree | e139636403d8753b4119ed23e7b15cc7cac57269 | |
parent | c45a8fe03a7b3653af2d2f8586668dcb3c21899b (diff) | |
download | libdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.tar.gz libdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.tar.bz2 libdbusmenu-678a41767787d26f624d38bd573e8c5a36fc72e0.zip |
fix leaky DbusmenuServer.priv.dbusobject
-rw-r--r-- | libdbusmenu-glib/server.c | 5 |
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; |