From 99af1501fc549be948d35587384c3d82918612e8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 7 Jun 2011 08:44:46 +0000 Subject: [PATCH] Closed a small memory leak with CD SAO found by valgrind --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/write.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 68e247e..659f54f 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.06.06.173611" +#define Cdrskin_timestamP "2011.06.07.084343" diff --git a/libburn/write.c b/libburn/write.c index b6f5c31..a317e5f 100644 --- a/libburn/write.c +++ b/libburn/write.c @@ -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) {