From 43e113ae54a89a38240f2740be25f7a53f885820 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 1 Nov 2015 19:49:17 +0000 Subject: [PATCH] Took into respect that burn_session_by_cue_file() parameter text_packs may be NULL. --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/structure.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 61c052f..e4e98e2 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.11.01.184659" +#define Cdrskin_timestamP "2015.11.01.194734" diff --git a/libburn/structure.c b/libburn/structure.c index c04853b..5055e0e 100644 --- a/libburn/structure.c +++ b/libburn/structure.c @@ -2146,10 +2146,12 @@ ex: tracks = burn_session_get_tracks(session, &num_tracks); for (i = 0; i < num_tracks; i++) burn_track_free(tracks[i]); - if(*text_packs != NULL) - free(*text_packs); - *text_packs = NULL; - *num_packs = 0; + if(text_packs != NULL) { + if(*text_packs != NULL) + free(*text_packs); + *text_packs = NULL; + *num_packs = 0; + } } else { if (fifo != NULL) { *fifo = crs->fifo;