aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorChong Yidong2008-07-25 14:04:02 +0000
committerChong Yidong2008-07-25 14:04:02 +0000
commitb2996e57831bdde76b61eae78ca97caf9c7dafdc (patch)
tree52821f815622b2f290a7e7d1b3ae7b672ba6e2e2 /src/image.c
parent7bfc0e9ee924f50e0d6366f141216fb7b1dffc29 (diff)
downloademacs-b2996e57831bdde76b61eae78ca97caf9c7dafdc.tar.gz
emacs-b2996e57831bdde76b61eae78ca97caf9c7dafdc.zip
(svg_load_image): Fix last change.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 58ea767dc9a..ffc075332f9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9021,12 +9021,13 @@ svg_load_image (f, img, contents, size)
9021 fn_rsvg_handle_close (rsvg_handle, &error); 9021 fn_rsvg_handle_close (rsvg_handle, &error);
9022 if (error) 9022 if (error)
9023 goto rsvg_error; 9023 goto rsvg_error;
9024
9024 /* We can now get a valid pixel buffer from the svg file, if all 9025 /* We can now get a valid pixel buffer from the svg file, if all
9025 went ok. */ 9026 went ok. */
9026 pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle); 9027 pixbuf = fn_rsvg_handle_get_pixbuf (rsvg_handle);
9028 fn_rsvg_handle_free (rsvg_handle);
9027 if (!pixbuf) 9029 if (!pixbuf)
9028 goto rsvg_error; 9030 goto rsvg_error;
9029 fn_rsvg_handle_free (rsvg_handle);
9030 9031
9031 /* Extract some meta data from the svg handle. */ 9032 /* Extract some meta data from the svg handle. */
9032 width = fn_gdk_pixbuf_get_width (pixbuf); 9033 width = fn_gdk_pixbuf_get_width (pixbuf);