Skip to content

Commit

Permalink
fix for crash
Browse files Browse the repository at this point in the history
  • Loading branch information
crocuis committed Feb 9, 2019
1 parent df7020b commit d6886c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/V8/Private/JavascriptComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ void UJavascriptComponent::BeginDestroy()
{
StaticGameData->Isolates.Add(JavascriptIsolate);
}
else if (JavascriptIsolate)
{
JavascriptIsolate->RemoveFromRoot();
JavascriptIsolate = nullptr;
JavascriptContext = nullptr;
}

if (bIsActive)
{
Expand Down

0 comments on commit d6886c5

Please sign in to comment.