[gtk+] Remove the destination file if trying to save a pixbuf failed
- From: Christian Dywan <cdywan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Remove the destination file if trying to save a pixbuf failed
- Date: Mon, 25 Jan 2010 09:42:04 +0000 (UTC)
commit a7d57b622bc84cb47e3cd81c571c8f1e42c4d546
Author: Christian Dywan <christian twotoasts de>
Date: Mon Jan 25 10:37:53 2010 +0100
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 205ff56..8229725 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]