[Bf-blender-cvs] [459c5d2] master: OSX: as we cannot be sure to have ARC, better release allocated notification

Jens Verwiebe noreply at git.blender.org
Wed Oct 22 20:17:23 CEST 2014


Commit: 459c5d20459764b7473d844e691f14d835c9bd16
Author: Jens Verwiebe
Date:   Wed Oct 22 20:17:04 2014 +0200
Branches: master
https://developer.blender.org/rB459c5d20459764b7473d844e691f14d835c9bd16

OSX: as we cannot be sure to have ARC, better release allocated notification

===================================================================

M	intern/ghost/intern/GHOST_WindowCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index f95a23f..44b3c5b 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -1351,6 +1351,7 @@ GHOST_TSuccess GHOST_WindowCocoa::endProgressBar()
 		notification.informativeText = @"Calculation ended";
 		notification.soundName = NSUserNotificationDefaultSoundName;
 		[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
+		[notification release];
 	}
 	
 	[dockIcon release];




More information about the Bf-blender-cvs mailing list