From 5c9366d95d2d7436ee488c2c3196b7b7187dc925 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 31 Dec 2021 21:22:49 +0100 Subject: clock: fix memory leak --- applets/clock/calendar-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c index 8fe2c77c..1e1248f0 100644 --- a/applets/clock/calendar-window.c +++ b/applets/clock/calendar-window.c @@ -403,6 +403,8 @@ calendar_window_dispose (GObject *object) calwin = CALENDAR_WINDOW (object); + g_clear_pointer (&calwin->priv->prefs_path, g_free); + if (calwin->priv->settings) g_object_unref (calwin->priv->settings); calwin->priv->settings = NULL; -- cgit v1.2.1