mirror of https://github.com/mgba-emu/mgba.git
Scripting: Fix leak when freeing painters
This commit is contained in:
parent
cecb4543c3
commit
042a66bb80
|
@ -131,6 +131,7 @@ static struct mScriptValue* _mScriptPainterGet(struct mScriptPainter* painter, c
|
|||
|
||||
void _mScriptPainterDeinit(struct mScriptPainter* painter) {
|
||||
mScriptValueDeref(painter->image);
|
||||
free(painter);
|
||||
}
|
||||
|
||||
mSCRIPT_DECLARE_STRUCT_VOID_METHOD(mPainter, setBlend, _mPainterSetBlend, 1, BOOL, enable);
|
||||
|
|
Loading…
Reference in New Issue