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