git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa6fd55
)
Fix a memleak in ncurses interface.
author
Rémi Duraffort
<ivoire@videolan.org>
Sun, 27 Jul 2008 21:01:36 +0000
(23:01 +0200)
committer
Rémi Duraffort
<ivoire@videolan.org>
Sun, 27 Jul 2008 21:02:04 +0000
(23:02 +0200)
modules/gui/ncurses.c
patch
|
blob
|
history
diff --git
a/modules/gui/ncurses.c
b/modules/gui/ncurses.c
index
1138ca7
..
d93d0a7
100644
(file)
--- 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, ... )
{