Browse Source

Fix crash when reload with overlays presented (#5774)

Yogev Ben David 5 years ago
parent
commit
2fa17aaaca
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/RNNOverlayManager.m

+ 1
- 1
lib/ios/RNNOverlayManager.m View File

30
 }
30
 }
31
 
31
 
32
 - (void)dismissAllOverlays {
32
 - (void)dismissAllOverlays {
33
-    for (RNNOverlayWindow* overlayWindow  in _overlayWindows) {
33
+    for (RNNOverlayWindow* overlayWindow  in [_overlayWindows reverseObjectEnumerator]) {
34
         [self detachOverlayWindow:overlayWindow];
34
         [self detachOverlayWindow:overlayWindow];
35
     }
35
     }
36
 }
36
 }