[JSC] Fix memory leaks due to pending exceptions

This commit is contained in:
Mikhail Lobotskiy
2025-05-30 13:16:09 +04:00
parent 6402c0cb73
commit 3886951671

View File

@ -250,6 +250,8 @@ namespace NSJSBase
{
CGlobalContext::GetInstance().UnregisterContextForId(*i);
}
// remove any exceptions pending to not prevent any JSValue deallocations
m_internal->context.exception = nil;
m_internal->context = nil;
}