diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-06 21:34:19 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-06 21:34:19 +0000 |
commit | 3eca39650ca4c06e073be51b57cb03a10df9eef9 (patch) | |
tree | b649a7c093866ac46f1f17b5e0f7254cbb27a1b0 /navit/graphics.c | |
parent | 14f17b81aef073d7981c75684c4db9fc5f1322e2 (diff) | |
download | navit-3eca39650ca4c06e073be51b57cb03a10df9eef9.tar.gz |
Fix:core:Three memleaks fixed.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5136 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index b626962c8..de9aa23e2 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -2316,6 +2316,7 @@ void graphics_displaylist_draw(struct graphics *gra, struct displaylist *display if (l) { graphics_gc_set_background(gra->gc[0], &l->color); graphics_gc_set_foreground(gra->gc[0], &l->color); + g_free(gra->default_font); gra->default_font = g_strdup(l->font); } graphics_background_gc(gra, gra->gc[0]); |