summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map.c b/src/map.c
index 4eb123a..9183875 100644
--- a/src/map.c
+++ b/src/map.c
@@ -195,7 +195,6 @@ gboolean map_new(map_t** ppMap, GtkWidget* pTargetWidget)
// init POI selection
pMap->pLocationSelectionArray = g_ptr_array_new();
- pMap->pLocationSelectionAllocator = g_free_list_new(sizeof(locationselection_t), 100);
// save it
*ppMap = pMap;
@@ -563,8 +562,7 @@ gboolean map_location_selection_add(map_t* pMap, gint nLocationID)
}
// create a new locationselection_t and initialize it
- locationselection_t* pNew = g_free_list_alloc(pMap->pLocationSelectionAllocator);
-
+ locationselection_t* pNew = g_new0(locationselection_t, 1);
pNew->nLocationID = nLocationID;
pNew->pAttributesArray = g_ptr_array_new();