sound-juicer r1999 - in trunk: . libjuicer



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  <ross burtonini com>

	* 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);



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