Took into respect that burn_session_by_cue_file() parameter text_packs may be NULL.

This commit is contained in:
Thomas Schmitt 2015-11-01 19:49:17 +00:00
parent be8834a564
commit 43e113ae54
2 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.11.01.184659"
#define Cdrskin_timestamP "2015.11.01.194734"

View File

@ -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) {
if(*text_packs != NULL)
free(*text_packs);
*text_packs = NULL;
*num_packs = 0;
}
} else {
if (fifo != NULL) {
*fifo = crs->fifo;