diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-03-10 22:09:53 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-03-10 22:09:53 +0000 |
commit | ce69f27afb0c811b820d8c4cf98f6b959a0ccc88 (patch) | |
tree | 870c3be35c7247db567c66538bbb82eb1cc9f0ad /navit/attr.c | |
parent | 1fdd7b30ceaf534833cea205bbd4a31d19056708 (diff) | |
download | navit-ce69f27afb0c811b820d8c4cf98f6b959a0ccc88.tar.gz |
Fix:Core:Updated track.c to new object handling
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4971 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/attr.c b/navit/attr.c index 894f01bff..530586a43 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -569,7 +569,7 @@ attr_free(struct attr *attr) { if (!attr) return; - if (attr->type == attr_navit || attr->type == attr_vehicle) { + if (attr->type == attr_navit || attr->type == attr_trackingo || attr->type == attr_vehicle) { struct navit_object *obj=attr->u.data; if (obj && obj->func && obj->func->unref) obj->func->unref(obj); @@ -588,7 +588,7 @@ attr_dup_content(struct attr *src, struct attr *dst) if (src->type >= attr_type_int_begin && src->type <= attr_type_int_end) dst->u.num=src->u.num; else if (src->type >= attr_type_object_begin && src->type <= attr_type_object_end) { - if (src->type == attr_navit || src->type == attr_vehicle) { + if (src->type == attr_navit || src->type == attr_trackingo || src->type == attr_vehicle) { struct navit_object *obj=src->u.data; if (obj && obj->func && obj->func->ref) { dst->u.data=obj->func->ref(obj); |