Fix memory leak when converting sounds to .wav

This wasted 6MB of memory oops
This commit is contained in:
UnknownShadow200 2020-02-29 14:43:01 +11:00
parent 51118ed297
commit 77eb9ea8fd

View File

@ -687,6 +687,7 @@ static void SoundPatcher_Save(const char* name, struct HttpRequest* req) {
res = dst.Close(&dst); res = dst.Close(&dst);
if (res) Logger_Warn(res, "closing .wav file"); if (res) Logger_Warn(res, "closing .wav file");
Vorbis_Free(&ctx);
} }
static void MusicPatcher_Save(const char* name, struct HttpRequest* req) { static void MusicPatcher_Save(const char* name, struct HttpRequest* req) {