In fill_one_dive(), cylinder and location strings are obtained via
get_string(), which needs to allocated a litte bit of memory.
After passing the two pointers ('cylinder' and 'location') as arguments
to gtk_list_store_set() it is safe to release them.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
DIVE_OTU, dive->otu,
DIVE_TOTALWEIGHT, total_weight(dive),
-1);
+
+ free(location);
+ free(cylinder);
}
static gboolean set_one_dive(GtkTreeModel *model,