1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

freetype: balance vlc_object_find() and vlc_object_release(), otherwise object is leaked (refcount > 0 on quit):

This commit is contained in:
Damien Fouilleul 2007-08-22 23:23:22 +00:00
parent 1048cc3d9c
commit dbcad1d808

View File

@ -519,7 +519,10 @@ static int LoadFontsFromAttachments( filter_t *p_filter )
return VLC_EGENERIC;
if( VLC_SUCCESS != input_Control( p_input, INPUT_GET_ATTACHMENTS, &pp_attachments, &i_attachments_cnt ))
{
vlc_object_release(p_input);
return VLC_EGENERIC;
}
p_sys->i_font_attachments = 0;
p_sys->pp_font_attachments = malloc( i_attachments_cnt * sizeof( input_attachment_t * ));
@ -551,6 +554,8 @@ static int LoadFontsFromAttachments( filter_t *p_filter )
}
free( pp_attachments );
vlc_object_release(p_input);
return rv;
}