]> git.sesse.net Git - vlc/blobdiff - modules/misc/text_renderer/text_renderer.h
freetype: fix memory leaks.
[vlc] / modules / misc / text_renderer / text_renderer.h
index 8913ae4ccf4b3b079636dc13db0dd8f63ef68809..bd25e3a4dfc0171f4fe1c8a17ec82f327229b6b9 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * text_renderer.h: common text renderer code
  *****************************************************************************
- * Copyright (C) 2007-2008 the VideoLAN team
+ * Copyright (C) 2007-2011 the VideoLAN team
  * $Id$
  *
  * Authors: Bernie Purcell <bitmap@videolan.org>
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * along with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include <vlc_memory.h>
+#include <vlc_memory.h>                                   /* realloc_or_free */
+#include <vlc_text_style.h>                                   /* text_style_t*/
+#include <vlc_filter.h>                                      /* filter_sys_t */
 
 typedef struct font_stack_t font_stack_t;
 struct font_stack_t
@@ -531,7 +533,7 @@ static int ProcessNodes( filter_t *p_filter,
         if( p_font_style->i_style_flags & STYLE_STRIKEOUT )
             b_through = true;
     }
-#ifdef HAVE_FONTCONFIG
+#ifdef HAVE_STYLES
     else
     {
         rv = PushFont( &p_fonts,