diff options
author | Benedikt Heine <bebe@bebehei.de> | 2018-11-12 06:17:02 +0100 |
---|---|---|
committer | Benedikt Heine <bebe@bebehei.de> | 2018-11-12 06:17:02 +0100 |
commit | 7bf10147296ff7a4ae7be3d56d2d4d9742b587e2 (patch) | |
tree | 9522634442ca1cabb26a250f2afdf4295a696a2d /gdk-pixbuf-loader | |
parent | 7b4cc9bbfda949f198e6050f0e9341eda09a9aff (diff) | |
download | librsvg-7bf10147296ff7a4ae7be3d56d2d4d9742b587e2.tar.gz |
Fix memory leak in handle
Diffstat (limited to 'gdk-pixbuf-loader')
-rw-r--r-- | gdk-pixbuf-loader/io-svg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk-pixbuf-loader/io-svg.c b/gdk-pixbuf-loader/io-svg.c index 0e7bf13d..06b5aef9 100644 --- a/gdk-pixbuf-loader/io-svg.c +++ b/gdk-pixbuf-loader/io-svg.c @@ -154,8 +154,11 @@ gdk_pixbuf__svg_image_stop_load (gpointer data, GError **error) return FALSE; } - if (!rsvg_handle_close (context->handle, error)) + if (!rsvg_handle_close (context->handle, error)) { + g_object_unref (context->handle); + g_free (context); return FALSE; + } pixbuf = rsvg_handle_get_pixbuf (context->handle); |