summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eom-image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index 45e03c8..963f142 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -1050,7 +1050,10 @@ eom_image_real_load (EomImage *img,
}
#ifdef HAVE_RSVG
if (eom_image_is_svg (img))
- rsvg_handle_close (priv->svg, error);
+ /* Ignore the error if loading failed earlier
+ * as the error will already be set in that case */
+ rsvg_handle_close (priv->svg,
+ (failed ? NULL : error));
#endif
}