[gnome-bluetooth/wip/hadess/fix-set-trusted: 3/3] settings-widget: Fix small memory leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/fix-set-trusted: 3/3] settings-widget: Fix small memory leak
- Date: Fri, 22 Mar 2019 16:19:10 +0000 (UTC)
commit 87abd5aa99e49dc9e50daff902551b025599a034
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 22 16:26:15 2019 +0100
settings-widget: Fix small memory leak
The device path in the data struct was never freed even though we owned
it. Small leak that only happened when pairing, so low impact.
lib/bluetooth-settings-widget.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index da1898fa..d3a54b54 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -880,6 +880,7 @@ bail:
if (data->timeout_id > 0)
g_source_remove (data->timeout_id);
+ g_free (data->device);
g_timer_destroy (data->timer);
g_free (data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]