diff options
author | Ted Gould <ted@gould.cx> | 2012-02-10 08:02:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-02-10 08:02:10 -0600 |
commit | 637508a520e01f6b8c7822e37445cda2618087cf (patch) | |
tree | 87a6c1e94e27b90e19ea25e17aff2265d3b44728 | |
parent | 8d7a4ec5cbf30119b0ec553174853556a480228a (diff) | |
download | libdbusmenu-637508a520e01f6b8c7822e37445cda2618087cf.tar.gz libdbusmenu-637508a520e01f6b8c7822e37445cda2618087cf.tar.bz2 libdbusmenu-637508a520e01f6b8c7822e37445cda2618087cf.zip |
Actually checking the NULL case properly
-rw-r--r-- | libdbusmenu-glib/client.c | 4 |
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; |