Commit 6627c2bf authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix memleak in position formatter

parent a2a2b5c4
...@@ -796,10 +796,17 @@ void _drawFrameInRect(NSRect frameRect) ...@@ -796,10 +796,17 @@ void _drawFrameInRect(NSRect frameRect)
NSMutableCharacterSet *nonNumbers = [[[NSCharacterSet decimalDigitCharacterSet] invertedSet] mutableCopy]; NSMutableCharacterSet *nonNumbers = [[[NSCharacterSet decimalDigitCharacterSet] invertedSet] mutableCopy];
[nonNumbers removeCharactersInString:@":"]; [nonNumbers removeCharactersInString:@":"];
o_forbidden_characters = [nonNumbers copy]; o_forbidden_characters = [nonNumbers copy];
[nonNumbers release];
return self; return self;
} }
- (void)dealloc
{
[o_forbidden_characters release];
[super dealloc];
}
- (NSString*)stringForObjectValue:(id)obj - (NSString*)stringForObjectValue:(id)obj
{ {
return obj; return obj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment