From 678a41767787d26f624d38bd573e8c5a36fc72e0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 14 Apr 2012 12:52:48 -0500 Subject: fix leaky DbusmenuServer.priv.dbusobject --- libdbusmenu-glib/server.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdbusmenu-glib') 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; -- cgit v1.2.3