From f91d7212976bf5a5a71cdb0c5cdf107083c17767 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 24 Jul 2020 12:48:48 +0200 Subject: clock: Properly free rsvg handles --- applets/clock/clock-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1