summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authorwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 16:36:04 +0000
committerwoglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 16:36:04 +0000
commit9baab783ca79eda75d822331eb9c178080e54125 (patch)
treea6ad131f4485c0d88bd75a3c28d23afdb72e7edc /navit/vehicle.c
parent4152d834d93d2399a85fc55efccbdb4d35a2babe (diff)
downloadnavit-svn-9baab783ca79eda75d822331eb9c178080e54125.tar.gz
Fix:Core:Destroy the graphic context for the background in vehicle_destroy, memleak found by valgrind
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4433 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index 6245eaa9..480a4389 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -146,6 +146,7 @@ vehicle_destroy(struct vehicle *this_)
this_->meth.destroy(this_->priv);
callback_list_destroy(this_->cbl);
attr_list_free(this_->attrs);
+ graphics_gc_destroy(this_->bg);
g_free(this_);
}