X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fcd%2Fcd_image.c;h=07b55ceb06f02bd04b12b8ffaee4fea3f0ba3f47;hb=54c1a1e8c284ede3e0da887ec4ce088f78f7fc30;hp=97c8f3f0254f8952ccade84c3fb35179a7745a72;hpb=274fcc35aa20e9777a8e09630a94088757384329;p=picodrive.git diff --git a/pico/cd/cd_image.c b/pico/cd/cd_image.c index 97c8f3f..07b55ce 100644 --- a/pico/cd/cd_image.c +++ b/pico/cd/cd_image.c @@ -183,7 +183,6 @@ int load_cd_image(const char *cd_img_name, int *type) elprintf(EL_STATUS, "Track %2i: %s %9i AUDIO %s", n, tmp_ext, length, cue_data->tracks[n].fname); } - cue_destroy(cue_data); goto finish; } @@ -260,6 +259,9 @@ finish: if (PicoCDLoadProgressCB != NULL) PicoCDLoadProgressCB(cd_img_name, 100); + if (cue_data != NULL) + cue_destroy(cue_data); + return 0; }