Closed a memory leak with error around C-TEXT. Another try on Coverity CID 21818.

This commit is contained in:
Thomas Schmitt 2015-11-01 18:47:52 +00:00
parent 8b907fe34d
commit f3ce6654a2
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -2146,6 +2146,10 @@ 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;
} else {
if (fifo != NULL) {
*fifo = crs->fifo;