# HG changeset patch # User Chong Yidong # Date 1216965084 0 # Node ID 1c0b739f899d13942a98893e71c3867bdcdd5505 # Parent 1ff787a61e48a109fd0cd91bb733f9c83ddbb21a (svg_load_image): Check for failure in return value of rsvg_handle_get_pixbuf. Free rsvg handle when done. diff -r 1ff787a61e48 -r 1c0b739f899d src/image.c --- a/src/image.c Fri Jul 25 05:51:10 2008 +0000 +++ b/src/image.c Fri Jul 25 05:51:24 2008 +0000 @@ -9024,7 +9024,9 @@ /* 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);