Revert "Unref GCancellables if they were reffed by the object."
authorDan Winship <danw@gnome.org>
Mon, 4 Apr 2011 15:20:01 +0000 (11:20 -0400)
committerDan Winship <danw@gnome.org>
Mon, 4 Apr 2011 15:26:04 +0000 (11:26 -0400)
This reverts commit beabf4ae146344bfcec20fd783aa4f924ff7bc6b, which
was committed without approval during hard code freeze.

tls/gnutls/gtlsinputstream-gnutls.c
tls/gnutls/gtlsoutputstream-gnutls.c

index dd22be5..0874576 100644 (file)
@@ -93,9 +93,6 @@ g_tls_input_stream_gnutls_read_ready (GPollableInputStream *stream,
     }
   else
     g_simple_async_result_set_op_res_gssize (simple, nread);
-
-  if (tls_stream->priv->cancellable)
-    g_object_unref (tls_stream->priv->cancellable);
   g_simple_async_result_complete (simple);
   g_object_unref (simple);
 
index 462d74e..e69e445 100644 (file)
@@ -93,9 +93,6 @@ g_tls_output_stream_gnutls_write_ready (GIOStreamAdapter *adapter,
     }
   else
     g_simple_async_result_set_op_res_gssize (simple, nwrote);
-
-  if (tls_stream->priv->cancellable)
-    g_object_unref (tls_stream->priv->cancellable);
   g_simple_async_result_complete (simple);
   g_object_unref (simple);