[vlc-devel] commit: Fix another memleak in ncurses ( Rafaël Carré )
git version control
git at videolan.org
Fri May 9 23:11:56 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 9 23:05:05 2008 +0200| [2c73e8cff83c285e8ebe30be04ca1dbe6166aa37]
Fix another memleak in ncurses
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c73e8cff83c285e8ebe30be04ca1dbe6166aa37
---
modules/gui/ncurses.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 3bdf76e..a0f01d9 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1476,12 +1476,8 @@ static void MainBoxWrite( intf_thread_t *p_intf, int l, int x, const char *p_fmt
return;
va_end( vl_args );
- if( p_buf == NULL )
- {
- return;
- }
-
mvnprintw( p_sys->i_box_y + l - p_sys->i_box_start, x, COLS - x - 1, "%s", p_buf );
+ free( p_buf );
}
static void DumpObject( intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int i_level )
More information about the vlc-devel
mailing list