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
This commit is contained in:
Cody Russell 2009-02-13 01:25:36 +00:00 committed by Cody Russell
parent c60201b772
commit 98f9ba55e8
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,11 @@
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.
2009-02-12 Marek Kasik <mkasik@redhat.com>
Bug 568571 Asian am/pm format on cups print backend's time parsing

View File

@ -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);