[librsvg/rustification] io-svg: Propagate the result of rsvg_handle_close(), oops
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] io-svg: Propagate the result of rsvg_handle_close(), oops
- Date: Tue, 13 Dec 2016 20:19:32 +0000 (UTC)
commit 8cb8489cd836cfdbb1c77f2a386aedbcea7749b7
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 13 14:18:55 2016 -0600
io-svg: Propagate the result of rsvg_handle_close(), oops
Found by Coverity.
gdk-pixbuf-loader/io-svg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf-loader/io-svg.c b/gdk-pixbuf-loader/io-svg.c
index bcdfd0b..98f9580 100644
--- a/gdk-pixbuf-loader/io-svg.c
+++ b/gdk-pixbuf-loader/io-svg.c
@@ -153,7 +153,8 @@ gdk_pixbuf__svg_image_stop_load (gpointer data, GError **error)
return FALSE;
}
- rsvg_handle_close (context->handle, error);
+ if (!rsvg_handle_close (context->handle, error))
+ return FALSE;
pixbuf = rsvg_handle_get_pixbuf (context->handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]