diff options
author | Cody Russell <bratsche@gnome.org> | 2009-02-13 01:25:36 +0000 |
---|---|---|
committer | Cody Russell <bratsche@src.gnome.org> | 2009-02-13 01:25:36 +0000 |
commit | 98f9ba55e86442f860e828a54cf89c4ef4a70f98 (patch) | |
tree | 78ad9c5fe53c6183a3685245b849344fe716ac07 /gdk-pixbuf | |
parent | c60201b7723929b515fa224174df963a5f0c2615 (diff) | |
download | gdk-pixbuf-98f9ba55e86442f860e828a54cf89c4ef4a70f98.tar.gz |
Bug 571576 – gdk_pixbuf_save_to_stream() broken
2009-02-12 Cody Russell <bratsche@gnome.org>
Bug 571576 – gdk_pixbuf_save_to_stream() broken
* gdk-pixbuf/gdk-pixbuf-io.c: Fix gdk_pixbuf_save_to_stream() so that
it does not always return FALSE (even when it succeeds), and also so
that it does not set error to NULL when something goes wrong.
svn path=/trunk/; revision=22322
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 641e74751..b1b9be24b 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -2406,13 +2406,10 @@ gdk_pixbuf_save_to_stream (GdkPixbuf *pixbuf, data.stream = stream; data.cancellable = cancellable; - if (!gdk_pixbuf_save_to_callbackv (pixbuf, save_to_stream, - &data, type, - keys, values, - error)) { - error = NULL; /* Ignore further errors */ - res = FALSE; - } + res = gdk_pixbuf_save_to_callbackv (pixbuf, save_to_stream, + &data, type, + keys, values, + error); g_strfreev (keys); g_strfreev (values); |