From 36c2d957f271def0a3b54f5a373d67d94385307f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 24 Dec 2006 16:38:14 +0000 Subject: [PATCH] safety in deallocating view --- macosx/ImageBackgroundView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/ImageBackgroundView.m b/macosx/ImageBackgroundView.m index 2b04f98bf..1767a52eb 100644 --- a/macosx/ImageBackgroundView.m +++ b/macosx/ImageBackgroundView.m @@ -37,7 +37,8 @@ - (void) dealloc { - [fBackgroundColor release]; + if (fBackgroundColor) + [fBackgroundColor release]; [super dealloc]; }