diff options
author | Daniele Forsi <dforsi@src.gnome.org> | 2011-11-21 15:49:57 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2011-11-21 15:46:56 +0000 |
commit | 4196553ec8b7d9addcb419e7a219e16265c93a73 (patch) | |
tree | 5f89b71bd742d50d9ce9d50952a012236a4a0f07 | |
parent | 11cf4509b1afa2ebfc4a5dcb570c92139a5469cc (diff) | |
download | gnome-bluetooth-4196553ec8b7d9addcb419e7a219e16265c93a73.tar.gz |
wizard: fix memleak
Common usage is freeing just before strdup.
https://bugzilla.gnome.org/show_bug.cgi?id=664478
-rw-r--r-- | wizard/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wizard/main.c b/wizard/main.c index 1933c82a..7a7aa7f9 100644 --- a/wizard/main.c +++ b/wizard/main.c @@ -622,6 +622,7 @@ entry_custom_event (GtkWidget *entry, GdkEventKey *event) void entry_custom_changed (GtkWidget *entry) { + g_free (user_pincode); user_pincode = g_strdup (gtk_entry_get_text(GTK_ENTRY(entry))); gtk_dialog_set_response_sensitive (GTK_DIALOG (pin_dialog), GTK_RESPONSE_ACCEPT, |