mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
SWORD25: Fix leaking the lua state MemoryWriteStreamDynamic buffer
This commit is contained in:
parent
9c2cfee4e5
commit
ddac55699d
@ -395,7 +395,7 @@ bool LuaScriptEngine::persist(OutputPersistenceBlock &writer) {
|
||||
lua_getglobal(_state, "_G");
|
||||
|
||||
// Lua persists and stores the data in a WriteStream
|
||||
Common::MemoryWriteStreamDynamic writeStream;
|
||||
Common::MemoryWriteStreamDynamic writeStream(DisposeAfterUse::YES);
|
||||
Lua::persistLua(_state, &writeStream);
|
||||
|
||||
// Persistenzdaten in den Writer schreiben.
|
||||
|
Loading…
x
Reference in New Issue
Block a user