mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Free trip notes memory when deleting a trip
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8bce372eb1
commit
596b13e310
1 changed files with 2 additions and 0 deletions
|
@ -1083,6 +1083,8 @@ static void delete_trip(dive_trip_t *trip)
|
|||
/* .. and free it */
|
||||
if (trip->location)
|
||||
free(trip->location);
|
||||
if (trip->notes)
|
||||
free(trip->notes);
|
||||
free(trip);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue