]> git.sesse.net Git - vlc/commitdiff
freetype.c: fixed crash on unbreakable strings
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 24 Oct 2004 16:19:44 +0000 (16:19 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 24 Oct 2004 16:19:44 +0000 (16:19 +0000)
modules/misc/freetype.c

index a177a9f9bf0530003ff16d773aa62fc509bffab0..05811dec29cf76467d426a44ea1e64f1cc0d5f17 100644 (file)
@@ -703,6 +703,8 @@ static line_desc_t *NewLine( byte_t *psz_string )
         free( p_line );
         return NULL;
     }
+    p_line->pp_glyphs[0] = NULL;
+    
     p_line->p_glyph_pos = malloc( sizeof( FT_Vector )
                                   * i_count + 1 );
     if( p_line->p_glyph_pos == NULL )