Diff between 0c6ec93755a0444899010f4b35213ea4c6ccb7cc and 2d58cc855d665d7dac89f10641766c41e924c906
Changed Files
| File | Additions | Deletions | Status |
| gdbus/client.c | +6 | -0 | modified |
Full Patch
diff --git a/gdbus/client.c b/gdbus/client.c
index ec9b638..ab40596 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -449,6 +449,12 @@ static void proxy_free(gpointer data)
if (proxy->client) {
GDBusClient *client = proxy->client;
+ if (proxy->get_all_call != NULL) {
+ dbus_pending_call_cancel(proxy->get_all_call);
+ dbus_pending_call_unref(proxy->get_all_call);
+ proxy->get_all_call = NULL;
+ }
+
if (client->proxy_removed)
client->proxy_removed(proxy, client->user_data);