mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fix use of freed mem
This commit is contained in:
parent
2d6460655c
commit
9993e0d6dd
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,6 @@ int load_cd_image(const char *cd_img_name, int *type)
|
||||||
elprintf(EL_STATUS, "Track %2i: %s %9i AUDIO %s",
|
elprintf(EL_STATUS, "Track %2i: %s %9i AUDIO %s",
|
||||||
n, tmp_ext, length, cue_data->tracks[n].fname);
|
n, tmp_ext, length, cue_data->tracks[n].fname);
|
||||||
}
|
}
|
||||||
cue_destroy(cue_data);
|
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,6 +259,9 @@ finish:
|
||||||
if (PicoCDLoadProgressCB != NULL)
|
if (PicoCDLoadProgressCB != NULL)
|
||||||
PicoCDLoadProgressCB(cd_img_name, 100);
|
PicoCDLoadProgressCB(cd_img_name, 100);
|
||||||
|
|
||||||
|
if (cue_data != NULL)
|
||||||
|
cue_destroy(cue_data);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue