Scripting: Fix leak when freeing painters

This commit is contained in:
Vicki Pfau 2024-04-12 20:52:16 -07:00
parent cecb4543c3
commit 042a66bb80
1 changed files with 1 additions and 0 deletions

View File

@ -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);