From d4dca8d4ff7fce73e33437cfdd73394bbeda6472 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jun 2008 12:08:19 -0400 Subject: [PATCH] Balancing with a [release] call * Source/BSLineNumberView.m: (drawRect:) --- Source/BSLineNumberView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/BSLineNumberView.m b/Source/BSLineNumberView.m index 59cbd29..c465c36 100644 --- a/Source/BSLineNumberView.m +++ b/Source/BSLineNumberView.m @@ -85,10 +85,12 @@ NSString *num = [NSString stringWithFormat:@"%u", line]; NSSize strSize = [num sizeWithAttributes:attrs]; [num drawAtPoint:NSMakePoint([self frame].size.width - strSize.width - 3, fragRect.origin.y + ((fragRect.size.height - strSize.height) / 2)) withAttributes:attrs]; - if ([markers containsObject:[[Breakpoint alloc] initWithLine:line inFile:[sourceView file]]]) + Breakpoint *test = [[Breakpoint alloc] initWithLine:line inFile:[sourceView file]]; + if ([markers containsObject:test]) { [self drawMarkerInRect:fragRect]; } + [test release]; } i += fragRange.length; -- 2.43.5