[vlc-devel] commit: Fix a memleak in ncurses interface. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Jul 27 23:01:05 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jul 27 23:01:36 2008 +0200| [72e25cde23ab4299ea6ce3a2f0218a947dd867e4]
Fix a memleak in ncurses interface.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72e25cde23ab4299ea6ce3a2f0218a947dd867e4
---
modules/gui/ncurses.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 1138ca7..d93d0a7 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1435,7 +1435,6 @@ static void mvnprintw( int y, int x, int w, const char *p_fmt, ... )
mvhline( y, x + i_width, ' ', w - i_width );
}
- free( p_buf );
#else
if( i_len > w )
{
@@ -1466,6 +1465,7 @@ static void mvnprintw( int y, int x, int w, const char *p_fmt, ... )
mvhline( y, x + i_len, ' ', w - i_len );
}
#endif
+ free( p_buf );
}
static void MainBoxWrite( intf_thread_t *p_intf, int l, int x, const char *p_fmt, ... )
{
More information about the vlc-devel
mailing list