From a7d57b622bc84cb47e3cd81c571c8f1e42c4d546 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 25 Jan 2010 10:37:53 +0100 Subject: [PATCH] Remove the destination file if trying to save a pixbuf failed Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=591102 --- gdk-pixbuf/gdk-pixbuf-io.c | 1 + 1 file changed, 1 insertion(+) 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; }