[ReactNative] Call invalidate when executor is deallocated

This commit is contained in:
Tadeu Zagallo 2015-04-16 08:42:15 -07:00
parent 679399289d
commit 50c9c616fb

View File

@ -218,7 +218,7 @@ static NSError *RCTNSErrorFromJSError(JSContextRef context, JSValueRef jsError)
- (void)dealloc
{
RCTAssert(!self.valid, @"must call -invalidate before -dealloc");
[self invalidate];
}
- (void)executeJSCall:(NSString *)name