X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmisc%2Fwin32text.c;h=0541e01d8cc11eca534f4d530a2295f769bf4563;hb=cc10207a6de5466bf6bfedcd8a3073c7a0f1224a;hp=266eb037986539a073a3ef16f95107ad0c63ff16;hpb=37b0b026bbe92b1bda266e6f30ec37c7ceee767d;p=vlc diff --git a/modules/misc/win32text.c b/modules/misc/win32text.c index 266eb03798..0541e01d8c 100644 --- a/modules/misc/win32text.c +++ b/modules/misc/win32text.c @@ -24,8 +24,10 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include /* malloc(), free() */ -#include + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include @@ -181,13 +183,13 @@ static int Create( vlc_object_t *p_this ) p_sys->i_default_font_size = val.i_int; if( SetFont( p_filter, 0 ) != VLC_SUCCESS ) goto error; - if( psz_fontfile ) free( psz_fontfile ); + free( psz_fontfile ); p_filter->pf_render_text = RenderText; p_filter->pf_render_html = NULL; return VLC_SUCCESS; error: - if( psz_fontfile ) free( psz_fontfile ); + free( psz_fontfile ); free( p_sys ); return VLC_EGENERIC; }