]> git.sesse.net Git - vlc/blobdiff - modules/misc/svg.c
Remove useless test before free and delete.
[vlc] / modules / misc / svg.c
index 7669dc5e13f5728af33d5ff81803c314c8a31bd1..9398c8c4955de165d8fcf5e80279d990dba17bdf 100644 (file)
@@ -507,8 +507,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
 
 static void FreeString( svg_rendition_t *p_svg )
 {
-    if( p_svg->psz_text )
-        free( p_svg->psz_text );
+    free( p_svg->psz_text );
     /* p_svg->p_rendition is a GdkPixbuf, and its allocation is
        managed through ref. counting */
     if( p_svg->p_rendition )