[rygel/rygel-0-12] core: Remove reference cycle in HTTP request



commit 4c923248e1cb0855aadc4011bc68bc8a3e9ae9d2
Author: Jens Georg <mail jensge org>
Date:   Mon Dec 19 08:14:55 2011 +0100

    core: Remove reference cycle in HTTP request

 src/rygel/rygel-http-request.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-http-request.vala b/src/rygel/rygel-http-request.vala
index 1a79065..f76dd39 100644
--- a/src/rygel/rygel-http-request.vala
+++ b/src/rygel/rygel-http-request.vala
@@ -65,9 +65,10 @@ internal abstract class Rygel.HTTPRequest : GLib.Object, Rygel.StateMachine {
             yield this.handle ();
         } catch (Error error) {
             this.handle_error (error);
-
-            return;
         }
+
+        // break probable cyclic references
+        this.cancellable = null;
     }
 
     protected abstract async void handle () throws Error;



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