summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call-private.h
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2013-06-17 15:07:15 +0100
committerAlban Crequy <alban.crequy@collabora.co.uk>2013-06-17 16:55:35 +0100
commit2b363686aa1cbfa2d778a16b813472f1bf309cbf (patch)
treecf3c39dca5c971d426651b53875fc552cbfcaf63 /rest/rest-proxy-call-private.h
parent3a60542a454eeb98ae025bad960fefefc94ca416 (diff)
downloadlibrest-2b363686aa1cbfa2d778a16b813472f1bf309cbf.tar.gz
call: disconnect GCancellable 'cancel' signal
Without this fix, the call object could be freed before any cancellation. But the 'cancel' callback should not be executed on a freed object. https://bugzilla.gnome.org/show_bug.cgi?id=702483
Diffstat (limited to 'rest/rest-proxy-call-private.h')
-rw-r--r--rest/rest-proxy-call-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rest/rest-proxy-call-private.h b/rest/rest-proxy-call-private.h
index ec7a4be..c915691 100644
--- a/rest/rest-proxy-call-private.h
+++ b/rest/rest-proxy-call-private.h
@@ -47,6 +47,9 @@ struct _RestProxyCallPrivate {
guint status_code;
gchar *status_message;
+ GCancellable *cancellable;
+ gulong cancel_sig;
+
RestProxy *proxy;
RestProxyCallAsyncClosure *cur_call_closure;