diff options
author | Felix Riemann <friemann@gnome.org> | 2023-05-06 19:24:46 +0200 |
---|---|---|
committer | Felix Riemann <friemann@gnome.org> | 2023-05-06 19:34:20 +0200 |
commit | bf51a29403495242079bc798c51ce1bc9c3e276f (patch) | |
tree | d6b12ca1f1c93367d0b8d28de4ecdf612359b7fd | |
parent | a7f73b0f0ea7f8efc4c94a6e0f6f3b913fe1bc45 (diff) | |
download | eog-bf51a29403495242079bc798c51ce1bc9c3e276f.tar.gz |
EogWindow: Fix leaked references on the window's ThumbNav widget
These would prevent the EogThumbNav from disposing/finalizing correctly.
That would keep the GSettings binding for the "show-buttons" property
alive as well. Although this doesn't seem to crash when triggered, it at
least prints some worrying criticals into the log.
Part of #291.
-rw-r--r-- | src/eog-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eog-window.c b/src/eog-window.c index ddbeff59..8c6dcbcd 100644 --- a/src/eog-window.c +++ b/src/eog-window.c @@ -343,6 +343,9 @@ eog_window_set_gallery_mode (EogWindow *window, if (priv->mode != EOG_WINDOW_MODE_UNKNOWN) { update_action_groups_state (window); } + + g_object_unref (priv->nav); + g_object_unref (hpaned); } static void |