rygel r315 - trunk/src/rygel



Author: zeeshanak
Date: Thu Nov 27 16:49:25 2008
New Revision: 315
URL: http://svn.gnome.org/viewvc/rygel?rev=315&view=rev

Log:
Initialize the list before adding services to it.

Modified:
   trunk/src/rygel/rygel-media-server.vala

Modified: trunk/src/rygel/rygel-media-server.vala
==============================================================================
--- trunk/src/rygel/rygel-media-server.vala	(original)
+++ trunk/src/rygel/rygel-media-server.vala	Thu Nov 27 16:49:25 2008
@@ -45,6 +45,8 @@
         this.weak_ref ((WeakNotify) xml_doc_free, description_doc);
         this.relative_location = relative_location;
 
+        this.services = new List<ServiceInfo> ();
+
         // Now create the sevice objects
         foreach (ResourceInfo info in plugin.resource_infos) {
             // FIXME: We only support plugable services for now



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