[Goodies-commits] r7025 - in xfmpc: branches/xfmpc-0.1.x branches/xfmpc-0.1.x/src trunk trunk/src

Mike Massonnet mmassonnet at xfce.org
Sun Mar 29 14:43:12 CEST 2009


Author: mmassonnet
Date: 2009-03-29 12:43:11 +0000 (Sun, 29 Mar 2009)
New Revision: 7025

Modified:
   xfmpc/branches/xfmpc-0.1.x/ChangeLog
   xfmpc/branches/xfmpc-0.1.x/src/playlist.c
   xfmpc/trunk/ChangeLog
   xfmpc/trunk/src/playlist.c
Log:
Fix segfault when "browsing" no song

Modified: xfmpc/branches/xfmpc-0.1.x/ChangeLog
===================================================================
--- xfmpc/branches/xfmpc-0.1.x/ChangeLog	2009-03-29 10:47:04 UTC (rev 7024)
+++ xfmpc/branches/xfmpc-0.1.x/ChangeLog	2009-03-29 12:43:11 UTC (rev 7025)
@@ -1,5 +1,11 @@
 2009-03-29	Mike Massonnet <mmassonnet at xfce.org>
 
+Fix segfault when "browsing" no song
+	* src/playlist.c(cb_browse_selection):
+	  - Return if list is null
+
+2009-03-29	Mike Massonnet <mmassonnet at xfce.org>
+
 Fix segfault when retrieving information of no song
 	* src/playlist.c(cb_info_selection):
 	  - Return if list is null

Modified: xfmpc/branches/xfmpc-0.1.x/src/playlist.c
===================================================================
--- xfmpc/branches/xfmpc-0.1.x/src/playlist.c	2009-03-29 10:47:04 UTC (rev 7024)
+++ xfmpc/branches/xfmpc-0.1.x/src/playlist.c	2009-03-29 12:43:11 UTC (rev 7025)
@@ -648,6 +648,9 @@
     return;
 
   list = gtk_tree_selection_get_selected_rows (selection, &store);
+  if (list == NULL)
+    return;
+
   if (gtk_tree_model_get_iter (store, &iter, list->data))
     {
       gtk_tree_model_get (store, &iter,

Modified: xfmpc/trunk/ChangeLog
===================================================================
--- xfmpc/trunk/ChangeLog	2009-03-29 10:47:04 UTC (rev 7024)
+++ xfmpc/trunk/ChangeLog	2009-03-29 12:43:11 UTC (rev 7025)
@@ -1,5 +1,11 @@
 2009-03-29	Mike Massonnet <mmassonnet at xfce.org>
 
+Fix segfault when "browsing" no song
+	* src/playlist.c(cb_browse_selection):
+	  - Return if list is null
+
+2009-03-29	Mike Massonnet <mmassonnet at xfce.org>
+
 Fix segfault when retrieving information of no song
 	* src/playlist.c(cb_info_selection):
 	  - Return if list is null

Modified: xfmpc/trunk/src/playlist.c
===================================================================
--- xfmpc/trunk/src/playlist.c	2009-03-29 10:47:04 UTC (rev 7024)
+++ xfmpc/trunk/src/playlist.c	2009-03-29 12:43:11 UTC (rev 7025)
@@ -648,6 +648,9 @@
     return;
 
   list = gtk_tree_selection_get_selected_rows (selection, &store);
+  if (list == NULL)
+    return;
+
   if (gtk_tree_model_get_iter (store, &iter, list->data))
     {
       gtk_tree_model_get (store, &iter,




More information about the Goodies-commits mailing list