Commit 6ecd2c84 authored by Rémi Duraffort's avatar Rémi Duraffort

ML: fix memory leak.

parent d47f8a18
...@@ -626,6 +626,7 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array, ...@@ -626,6 +626,7 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array,
} }
else /* This is a repeat row and the people need to be put together */ else /* This is a repeat row and the people need to be put together */
{ {
free( p_result );
ml_LockMedia( p_append->value.p_media ); ml_LockMedia( p_append->value.p_media );
if( psz_append_pname && i_append_pid && psz_append_prole ) if( psz_append_pname && i_append_pid && psz_append_prole )
ml_CreateAppendPersonAdv( &(p_append->value.p_media->p_people), ml_CreateAppendPersonAdv( &(p_append->value.p_media->p_people),
......
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