Browse Source

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

Javier Soto 12 years ago
parent
commit
0982c5108c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Classes/Global State Explorers/FLEXGlobalsTableViewController.m

+ 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