rhythmbox r6051 - in trunk: . plugins/generic-player



Author: hadess
Date: Fri Nov 14 17:34:19 2008
New Revision: 6051
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=6051&view=rev

Log:
2008-11-14  Bastien Nocera  <hadess hadess net>

	* plugins/generic-player/rb-psp-source.c (rb_psp_is_mount_player):
	Fix object unref on NULL object, spotted by Christophe Fergeau
	(Closes: #560804)



Modified:
   trunk/ChangeLog
   trunk/plugins/generic-player/rb-psp-source.c

Modified: trunk/plugins/generic-player/rb-psp-source.c
==============================================================================
--- trunk/plugins/generic-player/rb-psp-source.c	(original)
+++ trunk/plugins/generic-player/rb-psp-source.c	Fri Nov 14 17:34:19 2008
@@ -354,8 +354,10 @@
 
 #ifndef HAVE_HAL
 	music_dir = find_music_dir (mount);
-	result = (music_dir != NULL);
-	g_object_unref (music_dir);
+	if (music_dir != NULL) {
+		g_object_unref (music_dir);
+		result = TRUE;
+	}
 #else
 	volume = g_mount_get_volume (mount);
 	if (volume != NULL) {



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