summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2022-06-28 11:23:01 +0200
committerraveit65 <[email protected]>2022-07-02 17:42:28 +0200
commitf958e06e6671c7cc3214d44c26bf51032e2f871b (patch)
treea8d51c65bc6e27f14552375a155f7214599cf6fd /applets
parent7acb97b9b473556dd3199308fd1dcdc31a122d63 (diff)
downloadmate-panel-f958e06e6671c7cc3214d44c26bf51032e2f871b.tar.bz2
mate-panel-f958e06e6671c7cc3214d44c26bf51032e2f871b.tar.xz
clock: Fix memory leak
Diffstat (limited to 'applets')
-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 1b3480fe..3c7d1fde 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -373,7 +373,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;
@@ -394,6 +394,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);