diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-07 21:24:33 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-07 21:24:33 +0000 |
commit | 64b9bf5dd2db7563aa416f92292fb71713ba57b9 (patch) | |
tree | 03fb3528a0206a90bbefe0c2284be40e5dd8452f /navit/graphics.c | |
parent | a295aa5f3b623a99e1e8765d98861a4fd6eece97 (diff) | |
download | navit-64b9bf5dd2db7563aa416f92292fb71713ba57b9.tar.gz |
Fix:core:Two more leaks in graphics.c
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5138 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index de9aa23e2..90425b6a4 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -429,6 +429,7 @@ void graphics_free(struct graphics *gra) graphics_gc_destroy(gra->gc[2]); g_free(gra->default_font); graphics_font_destroy_all(gra); + g_free(gra->font); gra->meth.graphics_destroy(gra->priv); g_free(gra); } @@ -719,6 +720,7 @@ struct graphics_image * graphics_image_new_scaled_rotated(struct graphics *gra, this_->priv=gra->meth.image_new(gra->priv, &this_->meth, new_name, &this_->width, &this_->height, &this_->hot, rotate); if (this_->priv) { dbg(1,"Using image '%s' for '%s' at %dx%d\n", new_name, path, newwidth, newheight); + g_free(new_name); break; } g_free(new_name); |