summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-04-29 18:31:13 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-04-29 18:31:13 -0400
commita63fb2e3d331b2c72ad6420977f14c184284da01 (patch)
tree9a7622754edb6a69e480de3192c282aab75b0c64
parent5a186d65bd9bd0cc16c320ae11ace3845ec87a02 (diff)
Fix up snafu in proxy watcher
-rw-r--r--gdbus/gdbusproxywatching.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdbus/gdbusproxywatching.c b/gdbus/gdbusproxywatching.c
index 879274d..c52a4f5 100644
--- a/gdbus/gdbusproxywatching.c
+++ b/gdbus/gdbusproxywatching.c
@@ -85,10 +85,11 @@ client_unref (Client *client)
/* ensure we're only called from g_bus_unwatch_proxy */
g_assert (client->name_watcher_id == 0);
- /* we can do this because on_name_vanished() will have cleared these */
- g_assert (client->name_owner == NULL);
- g_assert (client->connection == NULL);
- g_assert (client->proxy == NULL);
+ g_free (client->name_owner);
+ if (client->connection != NULL)
+ g_object_unref (client->connection);
+ if (client->proxy != NULL)
+ g_object_unref (client->proxy);
g_free (client->name);
g_free (client->object_path);