[eog] EogWindow: Fix double-free when setting wallpaper from removable disk



commit 3792e71b62dfe27385562b2d82a5052027aced8b
Author: Felix Riemann <friemann gnome org>
Date:   Sun Nov 22 01:30:29 2020 +0100

    EogWindow: Fix double-free when setting wallpaper from removable disk
    
    The filename is released using g_autofree once the function returns.
    An additional `g_free()` causes a double-free instead.

 src/eog-window.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 28242c1f..fe22c867 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -3181,7 +3181,6 @@ eog_window_action_wallpaper (GSimpleAction *action,
                eog_job_scheduler_add_job (priv->copy_job);
 
                g_object_unref (file);
-               g_free (filename);
                return;
        }
 


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