feat:fix iOS memory leak in debugging

This commit is contained in:
pengfei.zhou
2021-03-04 10:02:29 +08:00
committed by osborn
parent b972cce1cd
commit 627f323ae3
14 changed files with 124 additions and 36 deletions

View File

@@ -101,6 +101,7 @@ - (void)build:(CGSize)size {
- (void)reload:(NSString *)script {
[self.driver destroyContext:self.contextId];
self.rootNode.viewId = nil;
[self.rootNode clearSubModel];
self.script = script;
[self.driver createContext:self.contextId script:script source:self.source];
[self init:self.extra];