[sound-juicer] Fix a crash in multiple_album_dialog()



commit 76f1ffdad3c0f6beb4358b85d6b63cce4718013b
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Wed Apr 1 14:19:52 2015 +0100

    Fix a crash in multiple_album_dialog()
    
    The string returned by format_release_details() is freed in
    multiple_album_dialog() so the fallback string used when there are no
    extra release details needs to be copied before being returned.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747120

 src/sj-main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index 19c0673..5fa6a94 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -888,7 +888,7 @@ static char *format_release_details (AlbumDetails *album)
      * "Released on <label>" */
     details = g_strdup_printf (_("Released on %s"), label_text->str);
   } else {
-    details = _("Release label, year & country unknown");
+    details = g_strdup (_("Release label, year & country unknown"));
   }
 
   if (label_text)


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