[gnome-bluetooth/gnome-3-2] wizard: fix memleak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-3-2] wizard: fix memleak
- Date: Mon, 21 Nov 2011 15:49:14 +0000 (UTC)
commit 4196553ec8b7d9addcb419e7a219e16265c93a73
Author: Daniele Forsi <dforsi src gnome org>
Date: Mon Nov 21 15:49:57 2011 +0100
wizard: fix memleak
Common usage is freeing just before strdup.
https://bugzilla.gnome.org/show_bug.cgi?id=664478
wizard/main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 1933c82..7a7aa7f 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]