core: Remove reference cycle in HTTP request
authorJens Georg <mail@jensge.org>
Mon, 19 Dec 2011 07:14:55 +0000 (08:14 +0100)
committerJens Georg <mail@jensge.org>
Fri, 23 Dec 2011 17:25:04 +0000 (18:25 +0100)
src/rygel/rygel-http-request.vala

index 6f95ed4..348bc29 100644 (file)
@@ -71,9 +71,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;