summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-17 16:58:41 +0200
committerLuke from DC <[email protected]>2020-07-29 20:47:20 +0000
commit80014e212924b6be4f5c4a3985d90c271828c5b2 (patch)
tree24112bdcdb47e7fff62dc5d5d850586b57545b50 /applets
parent6517bac43d30fdbd0c54438bf265c5fdcb6a8c27 (diff)
downloadmate-panel-80014e212924b6be4f5c4a3985d90c271828c5b2.tar.bz2
mate-panel-80014e212924b6be4f5c4a3985d90c271828c5b2.tar.xz
clock: Fix leaking cairo surface
Diffstat (limited to 'applets')
-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);
}
}