Parcourir la source

Made the static application window reference __weak so that we don't keep it around longer than it exists.

Javier Soto il y a 12 ans
Parent
commit
0982c5108c

+ 1 - 1
Classes/Global State Explorers/FLEXGlobalsTableViewController.m

@@ -18,7 +18,7 @@
 typedef NSString *(^FLEXGlobalsTableViewControllerEntryNameFuture)(void);
 typedef UIViewController *(^FLEXGlobalsTableViewControllerViewControllerFuture)(void);
 
-static UIWindow *s_applicationWindow = nil;
+static __weak UIWindow *s_applicationWindow = nil;
 static NSMutableArray *s_globalEntries = nil;
 
 @interface FLEXGlobalsTableViewControllerEntry : NSObject