summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-18 08:47:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-18 07:20:10 -0800
commitda154222cc659769770a625c17bf4162eb929f42 (patch)
treeff0072226b3d7e8b3772a25fa0bef657ffd245ca /main.cpp
parentbe1b79081d078b55aad0e85016d3ef2cd4cbdeaf (diff)
downloadsubsurface-da154222cc659769770a625c17bf4162eb929f42.tar.gz
Free strduped prefs before exit
This plugs a leak detected by valgrind. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index fe44cca09..3989cc927 100644
--- a/main.cpp
+++ b/main.cpp
@@ -68,5 +68,6 @@ int main(int argc, char **argv)
exit_ui();
parse_xml_exit();
subsurface_console_exit();
+ free_prefs();
return 0;
}