summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 94866d9e5..8817d05b8 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1935,7 +1935,7 @@ void set_dc_nickname(struct dive *dive)
gtk_widget_show_all(dialog);
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
if (strcmp(dc->model, gtk_entry_get_text(GTK_ENTRY(entry)))) {
- name = strdup(gtk_entry_get_text(GTK_ENTRY(entry)));
+ name = gtk_entry_get_text(GTK_ENTRY(entry));
remember_dc(dc->model, dc->deviceid, name);
mark_divelist_changed(TRUE);
}