mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
Fix memory leak in set_dc_nickname
remember_dc() already does a strdup of the nickname. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
27d51ce1d7
commit
39a79e0c46
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue