summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ameritech.net>2001-03-18 22:08:38 +0000
committerMike Kestner <mkestner@src.gnome.org>2001-03-18 22:08:38 +0000
commit545f0bd82088f4b50267071a51f60cbc841cc5e8 (patch)
tree25187ca548da00d3b0cd2b959ff594a01c37d89c /gdk-pixbuf
parentac68581f9655392ab4b41ac5d6b0b76c0adf532f (diff)
downloadgdk-pixbuf-545f0bd82088f4b50267071a51f60cbc841cc5e8.tar.gz
Finally getting around to checkin per Havoc. This is the fix for bug
Finally getting around to checkin per Havoc. This is the fix for bug 51782. 2001-03-18 Mike Kestner <mkestner@ameritech.net> * make-inline-pixbuf.c (main): Added logic to remove output when failures occur.
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 5cf930a81..feb54700e 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 d0e41a24a..65e1ed6f2 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);
}