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
This commit is contained in:
Sigmund Augdal Helberg 2006-01-26 16:51:47 +00:00
parent 8a2490d288
commit 7c3ae92d1f
2 changed files with 3 additions and 0 deletions

View File

@ -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_uri ) free( p_i->psz_uri );
if( p_i->p_stats ) free( p_i->p_stats );
p_i->psz_name = 0;
p_i->psz_uri = 0;

View File

@ -495,6 +495,8 @@ static void FlushMsg ( msg_queue_t *p_queue )
free( p_queue->msg[i_index].psz_msg );
if( 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 */