From dabcd367a8d3771d6956db175edb2307b3929189 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 14 Jul 2008 11:44:20 -0400 Subject: [PATCH] The subviews of BSSourceView were over-retained * Source/BSSourceView.m: (dealloc): Call [removeFromSuperview] on the subviews --- Source/BSSourceView.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/BSSourceView.m b/Source/BSSourceView.m index 4dcd8b6..99f1364 100644 --- a/Source/BSSourceView.m +++ b/Source/BSSourceView.m @@ -42,6 +42,11 @@ - (void)dealloc { [file release]; + + [numberView removeFromSuperview]; + [scrollView removeFromSuperview]; + [textView removeFromSuperview]; + [super dealloc]; } -- 2.22.5