summaryrefslogtreecommitdiff
path: root/applets/clock/calendar-window.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-31 21:22:49 +0100
committerLuke from DC <[email protected]>2022-01-02 07:23:29 +0000
commit273a3c7aa035d3b7a53f181dd4f3a88ad0b94922 (patch)
tree82b7b0ca0bebfc7ca9fa1c9a2bf6d8f226d58922 /applets/clock/calendar-window.c
parent56610fa8af9e5a88a7a12151e42d82102a98e5cb (diff)
downloadmate-panel-273a3c7aa035d3b7a53f181dd4f3a88ad0b94922.tar.bz2
mate-panel-273a3c7aa035d3b7a53f181dd4f3a88ad0b94922.tar.xz
clock: fix memory leak
Diffstat (limited to 'applets/clock/calendar-window.c')
-rw-r--r--applets/clock/calendar-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c
index 56c48955..cf6ef670 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;