[eog] EogWindow: Do not unref autoptr when setting wallpaper



commit a935a945f6b046236b807d23063c62525864a640
Author: Felix Riemann <friemann gnome org>
Date:   Sun Nov 22 01:42:34 2020 +0100

    EogWindow: Do not unref autoptr when setting wallpaper
    
    The GFile is implicitly unref'd using g_autoptr, so don't break
    reference counting by adding an additional unref on top.

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


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