diff options
author | Felix Riemann <friemann@gnome.org> | 2020-12-02 22:25:27 +0100 |
---|---|---|
committer | Felix Riemann <friemann@gnome.org> | 2020-12-02 22:34:46 +0100 |
commit | 6478411b29a18ba58ea53f5141da45c10fe7401d (patch) | |
tree | 6599cf1ec081aaf361aa7ef812c5d0a93e34aa13 /src | |
parent | 4364769bfe36904de1e6483c38bd3dccfe5e02d2 (diff) | |
download | eog-6478411b29a18ba58ea53f5141da45c10fe7401d.tar.gz |
EogWindow: Drop reference on unchanged imageswip/friemann/image-ref-cnt
Building the save confirmation dialog when closing a window adds a
new reference on every image in the collection. For unchanged images this
reference needs to be dropped again as the image is not kept.
Diffstat (limited to 'src')
-rw-r--r-- | src/eog-window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eog-window.c b/src/eog-window.c index 65ed41a8..1078ca5e 100644 --- a/src/eog-window.c +++ b/src/eog-window.c @@ -2433,6 +2433,8 @@ eog_window_unsaved_images_confirm (EogWindow *window) if (eog_image_is_modified (image)) { list = g_list_prepend (list, image); + } else { + g_object_unref (image); } } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (priv->store), &iter)); } |