]> err.no Git - mapper/commitdiff
Check that w is not null before freeing.
authorKaj-Michael Lang <milang@angel.tal.org>
Mon, 23 Jul 2007 12:36:25 +0000 (15:36 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Mon, 23 Jul 2007 12:36:25 +0000 (15:36 +0300)
src/osm-db.c

index 8628f9634d93310b932af4fec796dbc1d591eda9..184023b173877b182f618b84d6b1ab49b1789596 100644 (file)
@@ -107,6 +107,8 @@ g_list_free(w->nodes);
 void
 osm_way_free(osm_way *w)
 {
+if (!w)
+       return;
 osm_way_nodes_free(w);
 if (w->name)
        g_free(w->name);