[gtk+/native-layout] Remove the destination file if trying to save a pixbuf failed
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Remove the destination file if trying to save a pixbuf failed
- Date: Sun, 4 Apr 2010 02:21:23 +0000 (UTC)
commit 8f49f935df52739c08901804f2238e22665ccf1b
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]