Commit 27d368d4 authored by Max Kellermann's avatar Max Kellermann

decoder/gme: use AtScopeExit()

parent 085b599f
...@@ -287,11 +287,9 @@ gme_scan_file(Path path_fs, ...@@ -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 result; return ScanMusicEmu(emu, container.track, handler, handler_ctx);
} }
static const char *const gme_suffixes[] = { static const char *const gme_suffixes[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment