[vlc-devel] commit: Memory leak (CID #89) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jul 1 21:23:14 CEST 2008
vlc | branch: 0.8.6-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jul 1 22:22:27 2008 +0300| [5b888d367972788a3503d32208a20577cbacaad3]
Memory leak (CID #89)
Already fixed in master.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b888d367972788a3503d32208a20577cbacaad3
---
src/playlist/sort.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/playlist/sort.c b/src/playlist/sort.c
index 058fcad..4e3afbe 100644
--- a/src/playlist/sort.c
+++ b/src/playlist/sort.c
@@ -225,6 +225,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{
i_test = strcmp( psz_b, psz_a );
}
+ free( psz_a );
+ free( psz_b );
}
else if( i_mode == SORT_ALBUM )
{
@@ -268,6 +270,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{
i_test = strcmp( psz_b, psz_a );
}
+ free( psz_a );
+ free( psz_b );
}
else if( i_mode == SORT_TITLE_NODES_FIRST )
{
More information about the vlc-devel
mailing list