mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
Remove the destination file if trying to save a pixbuf failed
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=591102
This commit is contained in:
parent
bb7ff7b586
commit
8f49f935df
@ -2057,6 +2057,7 @@ gdk_pixbuf_savev (GdkPixbuf *pixbuf,
|
||||
if (!result) {
|
||||
g_return_val_if_fail (error == NULL || *error != NULL, FALSE);
|
||||
fclose (f);
|
||||
g_unlink (filename);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user