aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdbusmenu-glib/server.c')
-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;