summaryrefslogtreecommitdiff
path: root/navit/vehicleprofile.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-01-19 18:56:41 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-01-19 18:56:41 +0000
commit62ae36592fae33428c471ffcba240feb463d78a5 (patch)
treed82deab6a23f8cc81cc7bb1d618e465431df0991 /navit/vehicleprofile.c
parent97e90ebedcbdd653b680ab728c1a5e1628f14147 (diff)
downloadnavit-svn-62ae36592fae33428c471ffcba240feb463d78a5.tar.gz
Add:Core:Allow layer tag to reference layers within navit context, object handling cleanup
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5340 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.c')
-rw-r--r--navit/vehicleprofile.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/navit/vehicleprofile.c b/navit/vehicleprofile.c
index bae828e0..a51ecb34 100644
--- a/navit/vehicleprofile.c
+++ b/navit/vehicleprofile.c
@@ -22,9 +22,9 @@
#include <string.h>
#include "debug.h"
#include "item.h"
+#include "xmlconfig.h"
#include "roadprofile.h"
#include "vehicleprofile.h"
-#include "xmlconfig.h"
static void
vehicleprofile_set_attr_do(struct vehicleprofile *this_, struct attr *attr)
@@ -93,6 +93,8 @@ vehicleprofile_new(struct attr *parent, struct attr **attrs)
return NULL;
}
this_=g_new0(struct vehicleprofile, 1);
+ this_->func=&vehicleprofile_func;
+ navit_object_ref((struct navit_object *)this_);
this_->attrs=attr_list_dup(attrs);
this_->roadprofile_hash=g_hash_table_new(NULL, NULL);
this_->length=-1;
@@ -189,6 +191,6 @@ struct object_func vehicleprofile_func = {
(object_func_init)NULL,
(object_func_destroy)NULL,
(object_func_dup)NULL,
- (object_func_ref)NULL,
- (object_func_unref)NULL,
+ (object_func_ref)navit_object_ref,
+ (object_func_unref)navit_object_unref,
};