From f5726c3d184dce88822fd84dbe994d6fa92c089b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 21 Jun 2015 20:24:07 -0700 Subject: 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 --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 8b141a16f..c6660fc6b 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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 -- cgit v1.2.3-70-g09d2