[gnome-settings-daemon] common: Fix possible infinite loop when remapping outputs



commit 4a382c6d29a164caf0401a29009deedbe4e4f09f
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]