Patch for bug 51782
- From: Mike Kestner <mkestner enteract com>
- To: gtk-devel-list gnome org
- Subject: Patch for bug 51782
- Date: Tue, 06 Mar 2001 19:28:40 -0600
I've attached a small diff for that make-inline-pixbuf failure cleanup.
Let me know if I can commit.
Mike
Index: gdk-pixbuf/make-inline-pixbuf.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk-pixbuf/make-inline-pixbuf.c,v
retrieving revision 1.5
diff -u -r1.5 make-inline-pixbuf.c
--- gdk-pixbuf/make-inline-pixbuf.c 2001/02/04 07:06:31 1.5
+++ gdk-pixbuf/make-inline-pixbuf.c 2001/03/07 00:09:42
@@ -150,6 +150,7 @@
{
gboolean ext_symbols = FALSE;
FILE *outfile;
+ char *outfilename;
int i;
g_type_init (0);
@@ -175,6 +176,7 @@
exit (1);
}
+ outfilename = argv[i];
++i;
fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n"
@@ -198,7 +200,8 @@
if (pixbuf == NULL)
{
fprintf (stderr, "%s\n", error->message);
-
+ fclose (outfile);
+ remove (outfilename);
exit (1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]