[vlc-commits] macosx: fix double free in advanced preferences dialog
David Fuhrmann
git at videolan.org
Mon Sep 21 19:12:59 CEST 2015
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Sep 20 14:32:07 2015 +0200| [12e0e57903eeeef00c15fe67f2f2a95785124da2] | committer: David Fuhrmann
macosx: fix double free in advanced preferences dialog
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12e0e57903eeeef00c15fe67f2f2a95785124da2
---
modules/gui/macosx/prefs_widgets.m | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/modules/gui/macosx/prefs_widgets.m b/modules/gui/macosx/prefs_widgets.m
index abb1051..8ed1667 100644
--- a/modules/gui/macosx/prefs_widgets.m
+++ b/modules/gui/macosx/prefs_widgets.m
@@ -387,7 +387,7 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \
@interface VLCConfigControl()
{
- char *psz_name;
+ const char *psz_name;
}
@end
@@ -421,11 +421,6 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \
[self setFrame:frame];
}
-- (void)dealloc
-{
- free(psz_name);
-}
-
+ (int)calcVerticalMargin:(int)i_curItem lastItem:(int)i_lastItem
{
int i_margin;
More information about the vlc-commits
mailing list