[vlc-commits] macosx: fix memleak in position formatter
David Fuhrmann
git at videolan.org
Mon May 13 20:18:01 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon May 13 19:18:24 2013 +0200| [6627c2bf86715bb8050b338c317faaed876d0b54] | committer: David Fuhrmann
macosx: fix memleak in position formatter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6627c2bf86715bb8050b338c317faaed876d0b54
---
modules/gui/macosx/misc.m | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index 3a9bfde..c6ae9b5 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -796,10 +796,17 @@ void _drawFrameInRect(NSRect frameRect)
NSMutableCharacterSet *nonNumbers = [[[NSCharacterSet decimalDigitCharacterSet] invertedSet] mutableCopy];
[nonNumbers removeCharactersInString:@":"];
o_forbidden_characters = [nonNumbers copy];
+ [nonNumbers release];
return self;
}
+- (void)dealloc
+{
+ [o_forbidden_characters release];
+ [super dealloc];
+}
+
- (NSString*)stringForObjectValue:(id)obj
{
return obj;
More information about the vlc-commits
mailing list