# HG changeset patch # User nenolod # Date 1151525792 25200 # Node ID ca5d03c4b3f1c1caf85fe27034c476484a38e20f # Parent 5c5fe5bbd561570dddad99d4bb75edc46575fc23 [svn] - extra sanity checking keeps the double-free away diff -r 5c5fe5bbd561 -r ca5d03c4b3f1 ChangeLog --- a/ChangeLog Wed Jun 28 13:02:34 2006 -0700 +++ b/ChangeLog Wed Jun 28 13:16:32 2006 -0700 @@ -1,3 +1,11 @@ +2006-06-28 20:02:34 +0000 Tony Vroon + revision [1610] + AltiVec-accelerated DCT64 pinched from mplayer SVN. Needs to be integrated into the build system. + + Changes: Modified: + +543 -0 trunk/Plugins/Input/mpg123/dct64_altivec.c + + 2006-06-28 19:51:43 +0000 William Pitcock revision [1608] - add --no-log switch to disable the system logger (and instead dump to stdout) diff -r 5c5fe5bbd561 -r ca5d03c4b3f1 libaudacious/titlestring.c --- a/libaudacious/titlestring.c Wed Jun 28 13:02:34 2006 -0700 +++ b/libaudacious/titlestring.c Wed Jun 28 13:16:32 2006 -0700 @@ -53,17 +53,33 @@ void bmp_title_input_free(BmpTitleInput * input) { - if (!input) + if (input == NULL) return; - g_free(input->performer); - g_free(input->album_name); - g_free(input->track_name); - g_free(input->date); - g_free(input->genre); - g_free(input->comment); - g_free(input->file_name); - g_free(input->file_path); + if (input->performer != NULL) + g_free(input->performer); + + if (input->album_name != NULL) + g_free(input->album_name); + + if (input->track_name != NULL) + g_free(input->track_name); + + if (input->date != NULL) + g_free(input->date); + + if (input->genre != NULL) + g_free(input->genre); + + if (input->comment != NULL) + g_free(input->comment); + + if (input->file_name != NULL) + g_free(input->file_name); + + if (input->file_path != NULL) + g_free(input->file_path); + g_free(input); }