Skip to content

Commit

Permalink
fix(ios): clear resources before Engine destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonelmy authored and ilikethese committed Oct 13, 2020
1 parent 049f57e commit fe6e080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/sdk/base/HippyJSEnginesMapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ - (void)removeEngineForKey:(NSString *)key {
ref.second--;
if (0 == ref.second) {
std::shared_ptr<Engine> engine = ref.first;
engine->TerminateRunner();
_engineMapper.erase(it);
}
}
Expand Down

0 comments on commit fe6e080

Please sign in to comment.