[rygel/rygel-0-12] core: Don't keep strong reference on HTTP server



commit ef4cfa366aa653a33bc650eda09ea118fa0637e1
Author: Jens Georg <mail jensge org>
Date:   Mon Sep 19 12:09:20 2011 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
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,



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