core: Don't keep strong reference on HTTP server
authorJens Georg <mail@jensge.org>
Mon, 19 Sep 2011 10:09:20 +0000 (12:09 +0200)
committerJens Georg <mail@jensge.org>
Mon, 19 Sep 2011 10:13:46 +0000 (12:13 +0200)
The http item uri doesn't need a strong reference on the HTTP server,
the part of its lifetime where it needs access to that is considerably
smaller than the lifetime of the HTTP server and it blocks disposing
the HTTP server when the GUPnPContext becomes unavailable.

src/rygel/rygel-http-item-uri.vala

index f565928..861a6ea 100644 (file)
@@ -28,7 +28,7 @@ internal class Rygel.HTTPItemURI : Object {
     public int thumbnail_index;
     public int subtitle_index;
     public string? transcode_target;
-    public HTTPServer http_server;
+    public unowned HTTPServer http_server;
 
     public HTTPItemURI (string     item_id,
                         HTTPServer http_server,