src/misc/messages.c: Fixed a nasty memleak recently introduced

vlc_input.h: Fixed a not so nasty memleak recently introduced

Thank you very much zorglub
parent 8a2490d2
...@@ -119,6 +119,7 @@ static inline void vlc_input_item_Clean( input_item_t *p_i ) ...@@ -119,6 +119,7 @@ static inline void vlc_input_item_Clean( input_item_t *p_i )
{ {
if( p_i->psz_name ) free( p_i->psz_name ); if( p_i->psz_name ) free( p_i->psz_name );
if( p_i->psz_uri ) free( p_i->psz_uri ); if( p_i->psz_uri ) free( p_i->psz_uri );
if( p_i->p_stats ) free( p_i->p_stats );
p_i->psz_name = 0; p_i->psz_name = 0;
p_i->psz_uri = 0; p_i->psz_uri = 0;
......
...@@ -495,6 +495,8 @@ static void FlushMsg ( msg_queue_t *p_queue ) ...@@ -495,6 +495,8 @@ static void FlushMsg ( msg_queue_t *p_queue )
free( p_queue->msg[i_index].psz_msg ); free( p_queue->msg[i_index].psz_msg );
if( p_queue->msg[i_index].psz_module ) if( p_queue->msg[i_index].psz_module )
free( p_queue->msg[i_index].psz_module ); free( p_queue->msg[i_index].psz_module );
if( p_queue->msg[i_index].psz_header )
free( p_queue->msg[i_index].psz_header );
} }
/* Update the new start value */ /* Update the new start value */
......
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