diff options
Diffstat (limited to 'src/wocky-http-proxy.c')
-rw-r--r-- | src/wocky-http-proxy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wocky-http-proxy.c b/src/wocky-http-proxy.c index a1a030a..33d57d8 100644 --- a/src/wocky-http-proxy.c +++ b/src/wocky-http-proxy.c @@ -222,8 +222,7 @@ wocky_http_proxy_connect (GProxy *proxy, g_free (buffer); buffer = g_data_input_stream_read_until (data_in, HTTP_END_MARKER, NULL, cancellable, error); - g_object_unref (data_in); - data_in = NULL; + g_clear_object(&data_in); if (buffer == NULL) { |