diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 3 |
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); |