changeset 97007:2b861be36de9

(svg_load_image): Fix last change.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 25 Jul 2008 14:04:02 +0000
parents 35b998906255
children b6326d1fbbef
files src/image.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Fri Jul 25 14:03:51 2008 +0000
+++ b/src/image.c	Fri Jul 25 14:04:02 2008 +0000
@@ -9021,12 +9021,13 @@
   fn_rsvg_handle_close (rsvg_handle, &error);
   if (error)
     goto rsvg_error;
+
   /* We can now get a valid pixel buffer from the svg file, if all
      went ok.  */
   pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle);
+  fn_rsvg_handle_free (rsvg_handle);
   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);