adium 4527:6c3cd092c3d4: Fix a possible crash with SRRecorderCel...

commits at adium.im commits at adium.im
Wed Jan 18 22:54:29 UTC 2012


details:	http://hg.adium.im/adium/rev/6c3cd092c3d4
revision:	4527:6c3cd092c3d4
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Jan 18 23:54:21 2012 +0100

Fix a possible crash with SRRecorderCell when changing the system's appearance color (Graphite/Aqua) after the preferences window has been open.

SRRecorderCell forgot to unregister itself with the NSNotificationCenter when deallocating.

Refs #15736.

diffs (12 lines):

diff -r bc9a7bb64cfc -r 6c3cd092c3d4 Frameworks/ShortcutRecorder/Source/SRRecorderCell.m
--- a/Frameworks/ShortcutRecorder/Source/SRRecorderCell.m	Wed Jan 18 23:42:18 2012 +0200
+++ b/Frameworks/ShortcutRecorder/Source/SRRecorderCell.m	Wed Jan 18 23:54:21 2012 +0100
@@ -94,6 +94,8 @@
 	
 	[cancelCharacterSet release];
 	
+	[[NSNotificationCenter defaultCenter] removeObserver:self];
+	
 	[super dealloc];
 }
 




More information about the commits mailing list