[vlc-devel] commit: freetype: check xml-pointer before deleting it (Ilkka Ollakka )
git version control
git at videolan.org
Tue Aug 4 12:30:21 CEST 2009
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Aug 4 13:29:07 2009 +0300| [ce7e4589b26d883f7f8e30d3289445038570a62d] | committer: Ilkka Ollakka
freetype: check xml-pointer before deleting it
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce7e4589b26d883f7f8e30d3289445038570a62d
---
modules/misc/freetype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 8181a6e..ee07b13 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -478,7 +478,7 @@ static void Destroy( vlc_object_t *p_this )
#ifdef HAVE_FONTCONFIG
FontBuilderDetach( p_filter, p_sys->p_fontbuilder );
- xml_Delete( p_sys->p_xml );
+ if( p_sys->p_xml ) xml_Delete( p_sys->p_xml );
free( p_sys->psz_fontfamily );
#endif
More information about the vlc-devel
mailing list