[gnome-settings-daemon/gnome-3-18] common: Fix possible infinite loop when remapping outputs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-18] common: Fix possible infinite loop when remapping outputs
- Date: Tue, 1 Mar 2016 11:49:12 +0000 (UTC)
commit 3bff5ba2f2554325f23b18cf07a5b4eec5584d6d
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jan 22 21:31:17 2016 +0100
common: Fix possible infinite loop when remapping outputs
We were failing to iterate through the list here...
plugins/common/gsd-device-mapper.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 870878b..db3b6df 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -794,6 +794,9 @@ output_info_free (GsdOutputInfo *info)
input_info_set_output (input, NULL, FALSE, FALSE);
if (input->guessed_output == info)
input_info_set_output (input, NULL, TRUE, FALSE);
+
+ info->input_devices = g_list_remove (info->input_devices,
+ info->input_devices);
}
g_free (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]