[mutter] idle-monitor: Fix a GSList leak
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] idle-monitor: Fix a GSList leak
- Date: Thu, 21 Nov 2013 18:31:51 +0000 (UTC)
commit dc5bc3fea8e27ecb192567f5c00d30293bfb9ec8
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Nov 21 11:56:37 2013 +0100
idle-monitor: Fix a GSList leak
https://bugzilla.gnome.org/show_bug.cgi?id=712833
src/core/meta-idle-monitor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/core/meta-idle-monitor.c b/src/core/meta-idle-monitor.c
index a516d99..ca6b4ba 100644
--- a/src/core/meta-idle-monitor.c
+++ b/src/core/meta-idle-monitor.c
@@ -842,6 +842,8 @@ on_bus_acquired (GDBusConnection *connection,
for (iter = devices; iter; iter = iter->next)
on_device_added (device_manager, iter->data, manager);
+ g_slist_free (devices);
+
g_signal_connect_object (device_manager, "device-added",
G_CALLBACK (on_device_added), manager, 0);
g_signal_connect_object (device_manager, "device-removed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]