[gnome-flashback] system-indicators: fix use after free



commit 681e84fd429e881425f7f8991a8e6449f89e52f5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 22:28:21 2020 +0200

    system-indicators: fix use after free
    
    https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/21

 system-indicators/si-input-sources.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/system-indicators/si-input-sources.c b/system-indicators/si-input-sources.c
index 9a34c74..bca49e4 100644
--- a/system-indicators/si-input-sources.c
+++ b/system-indicators/si-input-sources.c
@@ -291,7 +291,7 @@ ensure_file_exists (const char *icon_theme_path,
 
   g_free (filename);
 
-  if (g_file_test (filename, G_FILE_TEST_EXISTS))
+  if (g_file_test (path, G_FILE_TEST_EXISTS))
     {
       g_free (path);
       return;


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