Closed a small memory leak with CD SAO found by valgrind

This commit is contained in:
Thomas Schmitt 2011-06-07 08:44:46 +00:00
parent aeff7957f2
commit 99af1501fc
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.06.06.173611"
#define Cdrskin_timestamP "2011.06.07.084343"

View File

@ -2529,6 +2529,8 @@ return crap. so we send the command, then ignore the result.
/* print_cue(sheet);*/
if (o->write_type == BURN_WRITE_SAO)
d->send_cue_sheet(d, sheet);
if (sheet->data != NULL)
free(sheet->data);
free(sheet);
if (o->write_type == BURN_WRITE_RAW) {