mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Use SDL_free to release SDL_RWops (#17591)
This commit is contained in:
committed by
GitHub
parent
71ad3af930
commit
5688eb511d
@@ -186,7 +186,7 @@ namespace OpenRCT2::Audio
|
||||
auto* ptr = static_cast<IStream*>(ctx->hidden.unknown.data1);
|
||||
delete ptr;
|
||||
ctx->hidden.unknown.data1 = nullptr;
|
||||
delete ctx;
|
||||
SDL_free(ctx);
|
||||
return 0;
|
||||
};
|
||||
return rw;
|
||||
|
||||
Reference in New Issue
Block a user