git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4053
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#include "quadtree.h"
#include <stdlib.h>
+#include <glib.h>
#define QUADTREE_NODE_CAPACITY 10
struct quadtree_node*
quadtree_node_new(struct quadtree_node* parent, double xmin, double xmax, double ymin, double ymax ) {
- struct quadtree_node*ret = calloc(1, sizeof(struct quadtree_node));
+ struct quadtree_node*ret = g_new0(struct quadtree_node,1);
ret->xmin = xmin;
ret->xmax = xmax;
ret->ymin = ymin;