Author: rburton
Date: Wed Jan 23 15:43:44 2008
New Revision: 1999
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=1999&view=rev

Log:
2008-01-23  Ross Burton  <[EMAIL PROTECTED]>

        * libjuicer/sj-metadata-musicbrainz.c:
        Fix use-after-free I introduced when cleaning up the disc
        detection logic.


Modified:
   trunk/ChangeLog
   trunk/libjuicer/sj-metadata-musicbrainz.c

Modified: trunk/libjuicer/sj-metadata-musicbrainz.c
==============================================================================
--- trunk/libjuicer/sj-metadata-musicbrainz.c   (original)
+++ trunk/libjuicer/sj-metadata-musicbrainz.c   Wed Jan 23 15:43:44 2008
@@ -429,8 +429,9 @@
  
       g_match_info_fetch_pos (info, 1, &pos, NULL);
       if (pos) {
+        s = g_strndup (album->title, pos);
         g_free (album->title);
-        album->title = g_strndup (album->title, pos);
+        album->title = s;
       }
       
       s = g_match_info_fetch (info, 2);
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to