diff options
-rw-r--r-- | core/equipment.c | 2 | ||||
-rw-r--r-- | core/equipment.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/equipment.c b/core/equipment.c index e96ce0d6a..4672cbe00 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -29,7 +29,7 @@ void free_weightsystem(weightsystem_t ws) ws.description = NULL; } -static void free_cylinder(cylinder_t c) +void free_cylinder(cylinder_t c) { free((void *)c.type.description); c.type.description = NULL; diff --git a/core/equipment.h b/core/equipment.h index 74f04dfdf..8bc752022 100644 --- a/core/equipment.h +++ b/core/equipment.h @@ -76,6 +76,7 @@ extern void free_weightsystem(weightsystem_t ws); extern void copy_cylinder_types(const struct dive *s, struct dive *d); extern void add_cloned_weightsystem(struct weightsystem_table *t, weightsystem_t ws); extern cylinder_t clone_cylinder(cylinder_t cyl); +extern void free_cylinder(cylinder_t cyl); extern cylinder_t *add_empty_cylinder(struct cylinder_table *t); extern void add_cloned_cylinder(struct cylinder_table *t, cylinder_t cyl); extern cylinder_t *get_cylinder(const struct dive *d, int idx); |