feat:fix iOS memory leak in debugging
This commit is contained in:
@@ -48,6 +48,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)ensureRunOnJSThread:(dispatch_block_t)block;
|
||||
|
||||
- (void)initJSEngine;
|
||||
|
||||
- (void)teardown;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@@ -101,9 +101,9 @@ - (instancetype)init {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
- (void)teardown {
|
||||
_destroyed = YES;
|
||||
};
|
||||
}
|
||||
|
||||
- (void)ensureRunOnJSThread:(dispatch_block_t)block {
|
||||
if (NSThread.currentThread == _jsThread) {
|
||||
|
Reference in New Issue
Block a user