mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-12-27 14:30:22 +00:00
dynamically free woz image data
This commit is contained in:
parent
564ccee061
commit
d4762eedd6
@ -43,10 +43,22 @@ Woz::Woz()
|
||||
|
||||
Woz::~Woz()
|
||||
{
|
||||
// FIXME: free all the stuff
|
||||
|
||||
if (fh != -1)
|
||||
if (fh != -1) {
|
||||
g_filemanager->closeFile(fh);
|
||||
fh = -1;
|
||||
}
|
||||
|
||||
for (int i=0; i<160; i++) {
|
||||
if (tracks[i].trackData) {
|
||||
free(tracks[i].trackData);
|
||||
tracks[i].trackData = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (metaData) {
|
||||
free(metaData);
|
||||
metaData = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user