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 f3ce6654a2
commit ade2b06ee0
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); tracks = burn_session_get_tracks(session, &num_tracks);
for (i = 0; i < num_tracks; i++) for (i = 0; i < num_tracks; i++)
burn_track_free(tracks[i]); burn_track_free(tracks[i]);
if(*text_packs != NULL) if(text_packs != NULL) {
free(*text_packs); if(*text_packs != NULL)
*text_packs = NULL; free(*text_packs);
*num_packs = 0; *text_packs = NULL;
*num_packs = 0;
}
} else { } else {
if (fifo != NULL) { if (fifo != NULL) {
*fifo = crs->fifo; *fifo = crs->fifo;