diff options
author | Ted Gould <ted@gould.cx> | 2012-03-30 16:05:20 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-30 16:05:20 -0500 |
commit | 5cefd27bef67d8408c403edce24d4ab3bbc8fc67 (patch) | |
tree | 40d0b399c93d7ab88354704d92b116278083c407 | |
parent | e1e8d32c77993e0ebddaeee4064c7b94d852246c (diff) | |
download | libdbusmenu-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
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
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 */ |