summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 20:57:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 20:58:26 -0700
commit24c6197c1019e8a3e7e5924522071be5a68a7be9 (patch)
treec59de59d3448063acf253371b8453a4b88be5e3b /gtk-gui.c
parent12ca6112e5a6f8e5ec8e1fee09976ef973f99680 (diff)
downloadsubsurface-24c6197c1019e8a3e7e5924522071be5a68a7be9.tar.gz
Fix a number of obvious memory leaks
Just the result of cppcheck and valgrind... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 0c74675a4..7032b1a04 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1027,7 +1027,7 @@ void init_ui(int *argcp, char ***argvp)
if (!conf_value)
uemis_max_dive_data = strdup("");
else
- uemis_max_dive_data = strdup(conf_value);
+ uemis_max_dive_data = conf_value;
error_info_bar = NULL;
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_set_application_name ("subsurface");