summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-17 16:58:41 +0200
committerPablo Barciela <[email protected]>2020-08-03 13:46:34 +0200
commit1f3f6abed34239cc056c4dcf2f1f890cd9572d6c (patch)
treea47e56ff246de2a59e1efc7aef4cc06595ed234f
parent36a7df77115e7a300f082cc9537af96885da0996 (diff)
downloadmate-panel-1f3f6abed34239cc056c4dcf2f1f890cd9572d6c.tar.bz2
mate-panel-1f3f6abed34239cc056c4dcf2f1f890cd9572d6c.tar.xz
clock: Fix leaking cairo surface
-rw-r--r--applets/clock/clock-location-tile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index 82db27c9..cdcc1ef3 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -706,6 +706,7 @@ update_weather_icon (ClockLocation *loc, WeatherInfo *info, gpointer data)
if (surface) {
gtk_image_set_from_surface (GTK_IMAGE (priv->weather_icon), surface);
gtk_widget_set_margin_end (priv->weather_icon, 6);
+ cairo_surface_destroy (surface);
}
}