forked from AuroraMiddleware/gtk
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
f8f35363de
commit
a7d57b622b
@ -2057,6 +2057,7 @@ gdk_pixbuf_savev (GdkPixbuf *pixbuf,
|
|||||||
if (!result) {
|
if (!result) {
|
||||||
g_return_val_if_fail (error == NULL || *error != NULL, FALSE);
|
g_return_val_if_fail (error == NULL || *error != NULL, FALSE);
|
||||||
fclose (f);
|
fclose (f);
|
||||||
|
g_unlink (filename);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user