Mercurial > audlegacy
changeset 1350:ca5d03c4b3f1 trunk
[svn] - extra sanity checking keeps the double-free away
author | nenolod |
---|---|
date | Wed, 28 Jun 2006 13:16:32 -0700 |
parents | 5c5fe5bbd561 |
children | fbb38017d144 |
files | ChangeLog libaudacious/titlestring.c |
diffstat | 2 files changed, 33 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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 <chainsaw@gentoo.org> + 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 <nenolod@nenolod.net> revision [1608] - add --no-log switch to disable the system logger (and instead dump to stdout)
--- 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); }