]> git.eshelyaron.com Git - emacs.git/commitdiff
(svg_load_image): Fix last change.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 25 Jul 2008 14:04:02 +0000 (14:04 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 25 Jul 2008 14:04:02 +0000 (14:04 +0000)
src/image.c

index 58ea767dc9a904da69fe6711025e58cc53cb2029..ffc075332f920cfe950febf21fec4745c4b93fe2 100644 (file)
@@ -9021,12 +9021,13 @@ svg_load_image (f, img, contents, size)
   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);