Use SDL_free to release SDL_RWops (#17591)

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2022-07-22 22:28:58 +00:00
1 parent 71ad3af930
commit 5688eb511d
1 file changed
+1 -1
+1 -1
View File
@@ -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;