Fix:core:Free some more stuff of the graphics struct to avoid memleaks
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Feb 2011 21:41:02 +0000 (21:41 +0000)
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Feb 2011 21:41:02 +0000 (21:41 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4175 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics.c

index 5e292ed..b67deb7 100644 (file)
@@ -393,6 +393,8 @@ struct graphics_font * graphics_named_font_new(struct graphics *gra, char *font,
 void graphics_free(struct graphics *gra)
 {
        gra->meth.graphics_destroy(gra->priv);
+       g_free(gra->default_font);
+       graphics_font_destroy_all(gra->font);
        g_free(gra);
 }