summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/make-inline-pixbuf.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index 5cf930a817..feb54700ec 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-18 Mike Kestner <mkestner@ameritech.net>
+
+ * make-inline-pixbuf.c (main): Added logic to remove output when
+ failures occur.
+
2001-03-14 Havoc Pennington <hp@redhat.com>
* Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file
diff --git a/gdk-pixbuf/make-inline-pixbuf.c b/gdk-pixbuf/make-inline-pixbuf.c
index d0e41a24a1..65e1ed6f2d 100644
--- a/gdk-pixbuf/make-inline-pixbuf.c
+++ b/gdk-pixbuf/make-inline-pixbuf.c
@@ -150,6 +150,7 @@ main (int argc, char **argv)
{
gboolean ext_symbols = FALSE;
FILE *outfile;
+ gchar *outfilename;
int i;
g_type_init (0);
@@ -175,6 +176,7 @@ main (int argc, char **argv)
exit (1);
}
+ outfilename = argv[i];
++i;
fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n"
@@ -198,7 +200,8 @@ main (int argc, char **argv)
if (pixbuf == NULL)
{
fprintf (stderr, "%s\n", error->message);
-
+ fclose (outfile);
+ remove (outfilename);
exit (1);
}