safety in deallocating view

This commit is contained in:
Mitchell Livingston 2006-12-24 16:38:14 +00:00
parent 7bba2d02a1
commit 36c2d957f2
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@
- (void) dealloc
{
[fBackgroundColor release];
if (fBackgroundColor)
[fBackgroundColor release];
[super dealloc];
}