summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2022-06-28 11:23:01 +0200
committerLuke from DC <[email protected]>2022-06-28 18:22:23 +0000
commit48ef669663d64062a5ed5d90e3e4787445a90859 (patch)
tree5f13894b9aea2ac4bad08e0c26a6dc66e49ce474 /applets/clock
parent4fb3334d01a1a774ef706300fe6cf60989fc9515 (diff)
downloadmate-panel-48ef669663d64062a5ed5d90e3e4787445a90859.tar.bz2
mate-panel-48ef669663d64062a5ed5d90e3e4787445a90859.tar.xz
clock: Fix memory leak
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index d87224f1..8b427d2e 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -368,7 +368,7 @@ calculate_minimum_height (GtkWidget *widget,
{
GtkStateFlags state;
GtkStyleContext *style_context;
- const PangoFontDescription *font_desc;
+ PangoFontDescription *font_desc;
GtkBorder padding;
PangoContext *pango_context;
PangoFontMetrics *metrics;
@@ -389,6 +389,7 @@ calculate_minimum_height (GtkWidget *widget,
descent = pango_font_metrics_get_descent (metrics);
pango_font_metrics_unref (metrics);
+ pango_font_description_free (font_desc);
gtk_style_context_get_padding (style_context, state, &padding);