summaryrefslogtreecommitdiff
path: root/mate-dictionary
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-01 11:04:26 +0100
committerraveit65 <[email protected]>2022-02-11 17:34:25 +0100
commit06fa4ba1d6259f63a34268b9cac3de1ed464b935 (patch)
tree3411798f1b6713625770700a7883f7d75592ddcc /mate-dictionary
parent074f2be436d3402038e9b1d423d7f3582072a9d6 (diff)
downloadmate-utils-06fa4ba1d6259f63a34268b9cac3de1ed464b935.tar.bz2
mate-utils-06fa4ba1d6259f63a34268b9cac3de1ed464b935.tar.xz
mate-dictionary: fix memory leak
Diffstat (limited to 'mate-dictionary')
-rw-r--r--mate-dictionary/src/gdict-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index 1a37e42d..1d35c310 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -127,7 +127,6 @@ gdict_window_dispose (GObject *gobject)
if (window->settings != NULL)
{
g_object_unref (window->settings);
-
window->settings = NULL;
}
@@ -186,6 +185,8 @@ gdict_window_dispose (GObject *gobject)
window->busy_cursor = NULL;
}
+ g_clear_pointer (&window->sidebar_page, g_free);
+
G_OBJECT_CLASS (gdict_window_parent_class)->dispose (gobject);
}