]> git.sesse.net Git - vlc/blobdiff - modules/misc/freetype.c
fix freetype compilation for WIN32 without HAVE_FONTCONFIG
[vlc] / modules / misc / freetype.c
index 22cb97027c586836f871ee002eec4455898426a7..0f68c946fcbf2caa21b0f451a6afe1099bd484ad 100644 (file)
@@ -479,11 +479,11 @@ error:
 #ifdef HAVE_FONTCONFIG
     if( fontmatch ) FcPatternDestroy( fontmatch );
     if( fontpattern ) FcPatternDestroy( fontpattern );
-#endif
 
 #ifdef WIN32
     if( p_dialog )
         dialog_ProgressDestroy( p_dialog );
+#endif
 #endif
 
     if( p_sys->p_face ) FT_Done_Face( p_sys->p_face );
@@ -2236,7 +2236,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
             {
                 /* Only text and karaoke tags are supported */
                 msg_Dbg( p_filter, "Unsupported top-level tag '%s' ignored.", psz_node );
-                xml_ReaderDelete( p_xml_reader );
+                p_filter->p_sys->p_xml = xml_ReaderReset( p_xml_reader, NULL );
                 p_xml_reader = NULL;
                 rv = VLC_EGENERIC;
             }
@@ -2297,7 +2297,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
                                 result.x, result.y );
             }
         }
-        xml_ReaderReset( p_xml_reader, NULL );
+        p_filter->p_sys->p_xml = xml_ReaderReset( p_xml_reader, NULL );
         FreeLines( p_lines );
     }
     stream_Delete( p_sub );