GNOME Bugzilla – Bug 591102
gdk_pixbuf_save() creates a zero-size file if it fails
Last modified: 2010-07-10 04:07:40 UTC
if gdk_pixbuf_save() fails to save a pixbuf, it returns FALSE and fills a GError variable. However the file is still created with a size of zero. Ideally it should only create the target file if the operation was successfully.
Created attachment 151466 [details] test case
Created attachment 151469 [details] [review] Remove file if an error occurred This patch modifies gdk_pixbuf_save to remove the file if saving failed. Unfortunately loaders rely on the existence of the file, so I don't think we can avoid creating the file altogether.
Pushed to master.