[glib-networking] Revert "Unref GCancellables if they were reffed by the object."



commit 29d3a991fedeff15f848ff75bf21bdf8097e9b82
Author: Dan Winship <danw gnome org>
Date:   Mon Apr 4 11:20:01 2011 -0400

    Revert "Unref GCancellables if they were reffed by the object."
    
    This reverts commit beabf4ae146344bfcec20fd783aa4f924ff7bc6b, which
    was committed without approval during hard code freeze.

 tls/gnutls/gtlsinputstream-gnutls.c  |    3 ---
 tls/gnutls/gtlsoutputstream-gnutls.c |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/tls/gnutls/gtlsinputstream-gnutls.c b/tls/gnutls/gtlsinputstream-gnutls.c
index dd22be5..0874576 100644
--- a/tls/gnutls/gtlsinputstream-gnutls.c
+++ b/tls/gnutls/gtlsinputstream-gnutls.c
@@ -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);
 
diff --git a/tls/gnutls/gtlsoutputstream-gnutls.c b/tls/gnutls/gtlsoutputstream-gnutls.c
index 462d74e..e69e445 100644
--- a/tls/gnutls/gtlsoutputstream-gnutls.c
+++ b/tls/gnutls/gtlsoutputstream-gnutls.c
@@ -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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]