diff options
author | Christian Dywan <christian@twotoasts.de> | 2010-01-25 10:37:53 +0100 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2010-01-25 10:37:53 +0100 |
commit | a7d57b622bc84cb47e3cd81c571c8f1e42c4d546 (patch) | |
tree | 2d5784fbfc377bbd384ba49eacfff4e7beb4bc26 /gdk-pixbuf | |
parent | f8f35363dea922ef92083b0c0c687674f9ae25e6 (diff) | |
download | gtk+-a7d57b622bc84cb47e3cd81c571c8f1e42c4d546.tar.gz |
Remove the destination file if trying to save a pixbuf failed
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=591102
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 205ff56866..82297252f2 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -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; } |