Commit 5b888d36 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory leak (CID #89)

Already fixed in master.
parent c14d0434
...@@ -225,6 +225,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items, ...@@ -225,6 +225,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{ {
i_test = strcmp( psz_b, psz_a ); i_test = strcmp( psz_b, psz_a );
} }
free( psz_a );
free( psz_b );
} }
else if( i_mode == SORT_ALBUM ) else if( i_mode == SORT_ALBUM )
{ {
...@@ -268,6 +270,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items, ...@@ -268,6 +270,8 @@ int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
{ {
i_test = strcmp( psz_b, psz_a ); i_test = strcmp( psz_b, psz_a );
} }
free( psz_a );
free( psz_b );
} }
else if( i_mode == SORT_TITLE_NODES_FIRST ) else if( i_mode == SORT_TITLE_NODES_FIRST )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment