Commit c226bf88 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Revert "macosx: NSScreen dealloc is not only called at end of execution of course."

This was even worse. +load() != init()
This reverts commit b5feb899.
parent 27953d60
...@@ -129,14 +129,13 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -129,14 +129,13 @@ static NSMutableArray *blackoutWindows = NULL;
+ (void)load + (void)load
{ {
/* init our fake object attribute */ /* init our fake object attribute */
if( !blackoutWindows ) blackoutWindows = [[NSMutableArray alloc] initWithCapacity:1];
blackoutWindows = [NSMutableArray arrayWithCapacity:1];
} }
- (void)dealloc - (void)dealloc
{ {
[blackoutWindows makeObjectsPerformSelector:@selector(close)];
[blackoutWindows removeAllObjects]; [blackoutWindows removeAllObjects];
[blackoutWindows release];
[super dealloc]; [super dealloc];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment