summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-24 12:48:48 +0200
committerPablo Barciela <[email protected]>2020-08-03 13:46:34 +0200
commitf91d7212976bf5a5a71cdb0c5cdf107083c17767 (patch)
treeddf51b7ca16ba25d0534651494a5f9cd74759063 /applets
parent4aa200f0e45e36f6cd31d659001a444ecb7c9841 (diff)
downloadmate-panel-f91d7212976bf5a5a71cdb0c5cdf107083c17767.tar.bz2
mate-panel-f91d7212976bf5a5a71cdb0c5cdf107083c17767.tar.xz
clock: Properly free rsvg handles
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/applets/clock/clock-utils.c b/applets/clock/clock-utils.c
index a21c3b86..822f48ef 100644
--- a/applets/clock/clock-utils.c
+++ b/applets/clock/clock-utils.c
@@ -166,8 +166,10 @@ clock_utils_pixbuf_from_svg_resource_at_size (const char *resource,
cairo_surface_destroy (surface);
out:
- if (handle)
+ if (handle) {
rsvg_handle_close (handle, NULL);
+ rsvg_handle_free (handle);
+ }
if (stream)
g_object_unref (stream);