[gnome-bluetooth] settings: Fix memory leak in pincode_callback



commit 52909dbf73e2686285fd2808ed83f6235248cc1d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 9 16:07:57 2013 +0100

    settings: Fix memory leak in pincode_callback
    
    Garbage collection FTW.

 lib/bluetooth-settings-widget.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 2780f5c..2855b2d 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -457,6 +457,11 @@ pincode_callback (GDBusMethodInvocation *invocation,
                g_clear_pointer (&priv->pairing_dialog, gtk_widget_destroy);
        }
 
+       g_free (name);
+       g_free (bdaddr);
+       g_free (default_pin);
+       g_free (display_pin);
+
        if (priv->pairing_dialog)
                gtk_widget_show (priv->pairing_dialog);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]