mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a number of resource leaks
Free memory returned from parse_mkvi_value() Free memory returned from printGPSCoords() Free memory allocated in added_list and removed_list Free memory allocated when adding suffix to dive site name Free memory allocated in cache_deco_state() Free memory allocated in build_filename() Free memory allocated in get_utf8() Free memory allocated in alloc_dive() Free memory allocated as cache but never used Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
004705e33e
commit
f5726c3d18
8 changed files with 26 additions and 11 deletions
|
@ -1184,6 +1184,8 @@ void MainTab::saveTags()
|
|||
taglist_free(mydive->tag_list);
|
||||
mydive->tag_list = new_tag_list;
|
||||
);
|
||||
taglist_free(added_list);
|
||||
taglist_free(removed_list);
|
||||
}
|
||||
|
||||
// buddy and divemaster are represented in the UI just like the tags, but the internal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue