aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-22 13:39:21 -0600
committerTed Gould <ted@gould.cx>2011-02-22 13:39:21 -0600
commitaff9b26c5c82ce54126d9cecc0a66a3abb5bfcc7 (patch)
treeb943e680501e3d35920c50c4f1188e721c33f685 /libdbusmenu-glib
parent3786fda6e30b90f71e55cb325a342a019a548007 (diff)
downloadlibdbusmenu-aff9b26c5c82ce54126d9cecc0a66a3abb5bfcc7.tar.gz
libdbusmenu-aff9b26c5c82ce54126d9cecc0a66a3abb5bfcc7.tar.bz2
libdbusmenu-aff9b26c5c82ce54126d9cecc0a66a3abb5bfcc7.zip
Adding a private variable for the string list
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/server.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 8d55cea..6199a39 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -59,6 +59,7 @@ struct _DbusmenuServerPrivate
DbusmenuTextDirection text_direction;
DbusmenuStatus status;
+ GStrv icon_dirs;
GArray * prop_array;
guint property_idle;
@@ -368,6 +369,7 @@ dbusmenu_server_init (DbusmenuServer *self)
default_text_direction(self);
priv->status = DBUSMENU_STATUS_NORMAL;
+ priv->icon_dirs = NULL;
return;
}
@@ -425,6 +427,13 @@ dbusmenu_server_dispose (GObject *object)
static void
dbusmenu_server_finalize (GObject *object)
{
+ DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(object);
+
+ if (priv->icon_dirs != NULL) {
+ g_strfreev(priv->icon_dirs);
+ priv->icon_dirs = NULL;
+ }
+
G_OBJECT_CLASS (dbusmenu_server_parent_class)->finalize (object);
return;
}