decoder/gme: use AtScopeExit()
This commit is contained in:
@@ -287,11 +287,9 @@ gme_scan_file(Path path_fs,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool result = ScanMusicEmu(emu, container.track, handler, handler_ctx);
|
AtScopeExit(emu) { gme_delete(emu); };
|
||||||
|
|
||||||
gme_delete(emu);
|
return ScanMusicEmu(emu, container.track, handler, handler_ctx);
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *const gme_suffixes[] = {
|
static const char *const gme_suffixes[] = {
|
||||||
|
Reference in New Issue
Block a user