aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-30 16:05:20 -0500
committerTed Gould <ted@gould.cx>2012-03-30 16:05:20 -0500
commit5cefd27bef67d8408c403edce24d4ab3bbc8fc67 (patch)
tree40d0b399c93d7ab88354704d92b116278083c407 /libdbusmenu-glib
parente1e8d32c77993e0ebddaeee4064c7b94d852246c (diff)
downloadlibdbusmenu-5cefd27bef67d8408c403edce24d4ab3bbc8fc67.tar.gz
libdbusmenu-5cefd27bef67d8408c403edce24d4ab3bbc8fc67.tar.bz2
libdbusmenu-5cefd27bef67d8408c403edce24d4ab3bbc8fc67.zip
If we're going to unref we should set to NULL to catch potential errors
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 2d07f0c..98329a1 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1116,6 +1116,7 @@ menuproxy_build_cb (GObject * object, GAsyncResult * res, gpointer user_data)
g_object_notify(G_OBJECT(user_data), DBUSMENU_CLIENT_PROP_TEXT_DIRECTION);
g_variant_unref(textdir);
+ textdir = NULL;
}
/* Check the status if available */
@@ -1131,6 +1132,7 @@ menuproxy_build_cb (GObject * object, GAsyncResult * res, gpointer user_data)
g_object_notify(G_OBJECT(user_data), DBUSMENU_CLIENT_PROP_STATUS);
g_variant_unref(status);
+ status = NULL;
}
/* Get the icon theme directories if available */
@@ -1145,6 +1147,7 @@ menuproxy_build_cb (GObject * object, GAsyncResult * res, gpointer user_data)
g_signal_emit(G_OBJECT(client), signals[ICON_THEME_DIRS], 0, priv->icon_dirs, TRUE);
g_variant_unref(icon_dirs);
+ icon_dirs = NULL;
}
/* Get the icon theme directories if available */