aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-28 16:16:17 -0500
committerTed Gould <ted@canonical.com>2009-04-28 16:16:17 -0500
commit5157797cfa9ebe345c1adbe5cd1de589f6e0c787 (patch)
tree391c3e4701175c6322420e4282bbbbaa0431b8c7
parent3701dfcaab6465a1aff34f1030cba8d559e271d3 (diff)
downloadlibdbusmenu-5157797cfa9ebe345c1adbe5cd1de589f6e0c787.tar.gz
libdbusmenu-5157797cfa9ebe345c1adbe5cd1de589f6e0c787.tar.bz2
libdbusmenu-5157797cfa9ebe345c1adbe5cd1de589f6e0c787.zip
Making sure to clear the call on error too.
-rw-r--r--libdbusmenu-glib/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index f00c185..d38ade3 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -306,6 +306,7 @@ update_layout_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data)
if (!dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_VALUE, &value, G_TYPE_INVALID)) {
g_warning("Getting layout failed on client %s object %s: %s", priv->dbus_name, priv->dbus_object, error->message);
+ priv->layoutcall = NULL;
g_error_free(error);
return;
}