Fix a possible crash with SRRecorderCell when changing the system's appearance color (Graphite/Aqua) after the preferences window has been open.
authorThijs Alkemade <thijsalkemade@gmail.com>
Wed, 18 Jan 2012 23:54:21 +0100
changeset 3661 870cd915d8b5
parent 3660 c29e6776b1b5
child 3662 5db824ea26e3
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)
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];
 }