summaryrefslogtreecommitdiffstats
path: root/core/equipment.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-23 11:07:51 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:34 +0200
commit1ca25ec03950cea052fd151c41e7d6535cfb1381 (patch)
tree759b39874d4d4c3637b71392651738b2f0a22936 /core/equipment.c
parent2453d4fc1fa6c6109645853483839f1e3c87d4a8 (diff)
downloadsubsurface-1ca25ec03950cea052fd151c41e7d6535cfb1381.tar.gz
core: make free_cylinder() global
The cylinder undo commands will keep a copy of a cylinder and therefore need the ability to free a cylinder object. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.c')
-rw-r--r--core/equipment.c2
1 files changed, 1 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;