Github user acton393 commented on a diff in the pull request:

    https://github.com/apache/incubator-weex/pull/696#discussion_r138793696
  
    --- Diff: ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m ---
    @@ -378,7 +379,8 @@ - (void)destroyInstance
         if(url.length > 0){
             [WXPrerenderManager addGlobalTask:url callback:nil];
         }
    -    
    +    NSMutableArray * toastQueue = [[WXToastManager sharedManager] 
valueForKey:@"toastQueue"];
    --- End diff --
    
    Singleton method for sharedManager  will initialize toastQueue as a 
mutableArray, here I just removeAllObject.  In other side , if toastQueue is 
nil,  sending message to nil value will take no effect.


---

Reply via email to