From cf5fece4d2aef5554e2c084902f4dcb6b2de7d65 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Mon, 19 Sep 2011 12:09:20 +0200 Subject: [PATCH] core: Don't keep strong reference on HTTP server 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rygel/rygel-http-item-uri.vala b/src/rygel/rygel-http-item-uri.vala index f565928..861a6ea 100644 --- a/src/rygel/rygel-http-item-uri.vala +++ b/src/rygel/rygel-http-item-uri.vala @@ -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, -- 2.7.4