[Xfce4-commits] <parole:master> Fix bug #6039 concerning the crash on a virtual box.

Ali noreply at xfce.org
Sat Nov 28 15:42:01 CET 2009


Updating branch refs/heads/master
         to c621509e57d326d3134ea61cf783f2d9d311e5db (commit)
       from c8b8168dca88a96a7793b445cbe62576258db40b (commit)

commit c621509e57d326d3134ea61cf783f2d9d311e5db
Author: Ali <aliov at xfce.org>
Date:   Sat Nov 28 15:41:29 2009 +0100

    Fix bug #6039 concerning the crash on a virtual box.

 src/parole-disc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/parole-disc.c b/src/parole-disc.c
index 5f0e3bc..20bf506 100644
--- a/src/parole-disc.c
+++ b/src/parole-disc.c
@@ -145,7 +145,7 @@ parole_disc_add_mount_to_menu (ParoleDisc *disc, GMount *mount, const gchar *dev
     gchar **content_type;
     guint i;
     ParoleDiscKind kind;
-    gchar *uri;
+    gchar *uri = NULL;
     
     file = g_mount_get_root (mount);
     
@@ -202,7 +202,8 @@ got_cdda:
 	label = g_strdup_printf ("%s '%s'", _("Play Disc"), name);
 	
 	data = parole_disc_get_mount_data (disc, label, uri, device, kind);
-	g_free (uri);
+	if ( uri )
+	    g_free (uri);
 	
 	g_ptr_array_add (disc->priv->array, data);
 	g_free (label);



More information about the Xfce4-commits mailing list