Commit 6f79c90b authored by Chong Yidong's avatar Chong Yidong
Browse files

(svg_load_image): Check for failure in return value of

rsvg_handle_get_pixbuf.  Free rsvg handle when done.
parent b293d659
......@@ -9024,7 +9024,9 @@ svg_load_image (f, img, contents, size)
/* We can now get a valid pixel buffer from the svg file, if all
went ok. */
pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle);
eassert (pixbuf);
if (!pixbuf)
goto rsvg_error;
fn_rsvg_handle_free (rsvg_handle);
/* Extract some meta data from the svg handle. */
width = fn_gdk_pixbuf_get_width (pixbuf);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment