JSC: Added Dispose() to ~CJSContext()

This commit is contained in:
Mikhail Lobotskiy
2023-12-01 18:33:16 +04:00
parent ccfaa64cc1
commit 7ca14893b9
2 changed files with 6 additions and 16 deletions

View File

@ -205,7 +205,8 @@ namespace NSJSBase
}
CJSContext::~CJSContext()
{
m_internal->context = nil;
if (m_internal->context)
Dispose();
RELEASEOBJECT(m_internal);
}