aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-15 11:16:48 -0600
committerTed Gould <ted@gould.cx>2012-02-15 11:16:48 -0600
commit881f49da9fb6979603485c4cda5a8f67b31e34c6 (patch)
treea634ee98a77227b1435a7558460f729c9c3ad6dd
parent3b10914731600de2ff962849ba1f56ecdb646b77 (diff)
parent637508a520e01f6b8c7822e37445cda2618087cf (diff)
downloadlibdbusmenu-881f49da9fb6979603485c4cda5a8f67b31e34c6.tar.gz
libdbusmenu-881f49da9fb6979603485c4cda5a8f67b31e34c6.tar.bz2
libdbusmenu-881f49da9fb6979603485c4cda5a8f67b31e34c6.zip
Only free when there is data to free
-rw-r--r--libdbusmenu-glib/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index a2330d1..6524f02 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -395,7 +395,7 @@ dbusmenu_client_dispose (GObject *object)
/* Only used for queueing up a new command, so we can
just drop this array. */
- if (priv->delayed_property_list == NULL) {
+ if (priv->delayed_property_list != NULL) {
gchar ** dataregion = (gchar **)g_array_free(priv->delayed_property_list, FALSE);
if (dataregion != NULL) {
g_strfreev(dataregion);
@@ -403,7 +403,7 @@ dbusmenu_client_dispose (GObject *object)
priv->delayed_property_list = NULL;
}
- if (priv->delayed_property_listeners == NULL) {
+ if (priv->delayed_property_listeners != NULL) {
gint i;
GError * localerror = NULL;