diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2013-06-17 15:07:15 +0100 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2013-06-17 16:55:35 +0100 |
commit | 2b363686aa1cbfa2d778a16b813472f1bf309cbf (patch) | |
tree | cf3c39dca5c971d426651b53875fc552cbfcaf63 /rest/rest-proxy-call-private.h | |
parent | 3a60542a454eeb98ae025bad960fefefc94ca416 (diff) | |
download | librest-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.h | 3 |
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; |