From b04627d046187a3c4cb8347939390f20f80a56e6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 15 Jul 2008 10:47:18 -0400 Subject: [PATCH] Fixing a memory leak * Source/DebuggerController.m: (gutterClickedAtLine:forFile:): The breakpoint (bp) sent to BreakpointManager is over-retained --- Source/DebuggerController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 33a8b35..99f6f57 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -303,6 +303,7 @@ { Breakpoint *bp = [[Breakpoint alloc] initWithLine:line inFile:file]; [mngr addBreakpoint:bp]; + [bp release]; } [[sourceViewer numberView] setMarkers:[NSSet setWithArray:[mngr breakpointsForFile:file]]]; -- 2.43.5