adium-1.4 3661:870cd915d8b5: Fix a possible crash with SRRecorde...

commits at adium.im commits at adium.im
Wed Jan 18 22:58:49 UTC 2012


details:	http://hg.adium.im/adium-1.4/rev/870cd915d8b5
revision:	3661:870cd915d8b5
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.
(transplanted from 6c3cd092c3d43e57c7bb65a32b7b418e11f57705)

diffs (12 lines):

diff -r c29e6776b1b5 -r 870cd915d8b5 Frameworks/ShortcutRecorder/Source/SRRecorderCell.m
--- a/Frameworks/ShortcutRecorder/Source/SRRecorderCell.m	Mon Jan 16 22:01:14 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