Peter Hosey  committed 693159a

Fix an under-retention crash: Use retain + autorelease to prolong the life of this bridge, so that a coalescing display doesn't message a dead bridge object in the following compound statement.

  • Participants
  • Parent commits 507967d
  • Branches default

Comments (0)

Files changed (1)

File Plugins/Displays/GrowlDisplayPlugin.m

 			bridge = nil;
 	} else {
-		theBridge = [activeBridges bridgeForWindowController:wc];
+		//Keep the bridge alive for the life of this pool, in case it would otherwise die here before we ask it for its notification's coalescing identifier in the next compound statement.
+		theBridge = [[[wc bridge] retain] autorelease];
 		[theBridge removeWindowController:wc];
 		[activeBridges removeObjectIdenticalTo:theBridge];