notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d64606
)
fix use of freed mem
author
notaz
<notasas@gmail.com>
Fri, 11 Oct 2013 23:43:47 +0000
(
02:43
+0300)
committer
notaz
<notasas@gmail.com>
Sat, 12 Oct 2013 00:22:30 +0000
(
03:22
+0300)
pico/cd/cd_image.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/cd/cd_image.c
b/pico/cd/cd_image.c
index
97c8f3f
..
07b55ce
100644
(file)
--- 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;
}