Better OGG cleanup

This commit is contained in:
Joshua Granick
2015-04-21 13:31:38 -07:00
parent f3030bb9c4
commit d7ade5b2f8

View File

@@ -124,6 +124,7 @@ namespace lime {
} else {
lime::fclose (file);
ByteArray data = ByteArray (resource->path);
OAL_OggMemoryFile fakeFile = { data.Bytes (), data.Size (), 0 };
@@ -166,6 +167,7 @@ namespace lime {
if (pInfo == NULL) {
//LOG_SOUND("FAILED TO READ OGG SOUND INFO, IS THIS EVEN AN OGG FILE?\n");
ov_clear (&oggFile);
return false;
}