[maemo-commits] [maemo-commits] r11740 - projects/haf/trunk/hildon-fm/hildon-fm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon May 21 20:29:02 EEST 2007
Author: marivoll
Date: 2007-05-21 20:29:01 +0300 (Mon, 21 May 2007)
New Revision: 11740

Modified:
   projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c
Log:
	* hildon-fm/hildon-file-system-private.c
	(get_special_location_callback): Add reference count to the
	location object when adding it into the global tree of special
	locations.


Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c
===================================================================
--- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c	2007-05-21 17:28:27 UTC (rev 11739)
+++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-private.c	2007-05-21 17:29:01 UTC (rev 11740)
@@ -250,7 +250,10 @@
                     candidate, searched->uri);
                 searched->is_child = TRUE;
 		if (searched->result)
-		  g_node_append_data (node, searched->result);
+		  {
+		    g_object_ref (searched->result);
+		    g_node_append_data (node, searched->result);
+		  }
             }
 
 	    return searched->result != NULL;


More information about the maemo-commits mailing list