diff options
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-loader.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index cd1b91418b..69bb7f98ea 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -300,9 +300,10 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const guchar *buf, priv->header_buf_offset += nbytes; - if(priv->header_buf_offset >= LOADER_HEADER_SIZE) - gdk_pixbuf_loader_load_module(loader); - + if(priv->header_buf_offset >= LOADER_HEADER_SIZE) { + if (gdk_pixbuf_loader_load_module(loader) == 0) + return 0; + } return nbytes; } |