Lua - fix memory leaks
This commit is contained in:
parent
03e4403b9c
commit
f8a962294a
|
@ -839,6 +839,8 @@ namespace BizHawk.MultiClient
|
|||
/// </summary>
|
||||
/// <param name="includeFrameWaiters">should frame waiters be waken up? only use this immediately before a frame of emulation</param>
|
||||
public void ResumeScripts(bool includeFrameWaiters)
|
||||
{
|
||||
if (luaList != null && luaList.Count > 0)
|
||||
{
|
||||
if (LuaImp.luaSurface == null)
|
||||
{
|
||||
|
@ -875,18 +877,25 @@ namespace BizHawk.MultiClient
|
|||
else MessageBox.Show(ex.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
//LuaImp.gui_drawFinishEmu();
|
||||
}
|
||||
|
||||
public void StartLuaDrawing()
|
||||
{
|
||||
if (luaList != null && luaList.Count > 0)
|
||||
{
|
||||
LuaImp.gui_drawNewEmu();
|
||||
}
|
||||
}
|
||||
|
||||
public void EndLuaDrawing()
|
||||
{
|
||||
if (luaList != null && luaList.Count > 0)
|
||||
{
|
||||
LuaImp.gui_drawFinishEmu();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsRunning()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue