summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <doml@src.gnome.org>2003-02-04 15:17:40 +0000
committerDom Lachowicz <doml@src.gnome.org>2003-02-04 15:17:40 +0000
commitcc4964fb6a0bd6301ac8fd56c43715d8c6953564 (patch)
tree589d84bdab582b92b81fa9681e7f8b6fda13cf85
parent480a48d74c39c4ae6c01d2911a6a65c57d30b646 (diff)
downloadlibrsvg-cc4964fb6a0bd6301ac8fd56c43715d8c6953564.tar.gz
fix for pixbuf regression in gtk+ proper
-rw-r--r--gdk-pixbuf-loader/io-svg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdk-pixbuf-loader/io-svg.c b/gdk-pixbuf-loader/io-svg.c
index 2817e788..03bbfde7 100644
--- a/gdk-pixbuf-loader/io-svg.c
+++ b/gdk-pixbuf-loader/io-svg.c
@@ -56,7 +56,8 @@ gdk_pixbuf__svg_image_begin_load (GdkPixbufModuleSizeFunc size_func,
{
SvgContext *context = g_new0 (SvgContext, 1);
- *error = NULL;
+ if (error)
+ *error = NULL;
#if HAVE_SVGZ
/* lazy create the handle on the first write */
@@ -83,7 +84,8 @@ gdk_pixbuf__svg_image_load_increment (gpointer data,
SvgContext *context = (SvgContext *)data;
gboolean result;
- *error = NULL;
+ if (error)
+ *error = NULL;
#if HAVE_SVGZ
if (context->first_write == TRUE) {
@@ -114,7 +116,8 @@ gdk_pixbuf__svg_image_stop_load (gpointer data, GError **error)
{
SvgContext *context = (SvgContext *)data;
- *error = NULL;
+ if (error)
+ *error = NULL;
rsvg_handle_close (context->handle, error);