]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/globals.c
Add missing file.`
[thirdparty/cups.git] / cups / globals.c
index d7c6ac293fcd8832f4cf3fbfe3272302cdd24e9c..d104f1b50467b947c7c4e1d737da3451fd479ed4 100644 (file)
@@ -1,25 +1,16 @@
 /*
- * "$Id: globals.c 4922 2006-01-12 22:05:06Z mike $"
+ * "$Id: globals.c 7460 2008-04-16 02:19:54Z mike $"
  *
  *   Global variable access routines for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2006 by Easy Software Products, all rights reserved.
+ *   Copyright 2007-2008 by Apple Inc.
+ *   Copyright 1997-2007 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
- *   property of Easy Software Products and are protected by Federal
- *   copyright law.  Distribution and use rights are outlined in the file
- *   "LICENSE.txt" which should have been included with this file.  If this
- *   file is missing or damaged please contact Easy Software Products
- *   at:
- *
- *       Attn: CUPS Licensing Information
- *       Easy Software Products
- *       44141 Airport View Drive, Suite 204
- *       Hollywood, Maryland 20636 USA
- *
- *       Voice: (301) 373-9600
- *       EMail: cups-info@cups.org
- *         WWW: http://www.cups.org
+ *   property of Apple Inc. and are protected by Federal copyright
+ *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
+ *   which should have been included with this file.  If this file is
+ *   file is missing or damaged, see the license at "http://www.cups.org/".
  *
  *   This file is subject to the Apple OS-Developed Software exception.
  *
@@ -152,6 +143,22 @@ globals_init()
 static void
 globals_destructor(void *value)                /* I - Data to free */
 {
+  int                  i;              /* Looping var */
+  _cups_globals_t      *cg;            /* Global data */
+
+
+  cg = (_cups_globals_t *)value;
+
+  httpClose(cg->http);
+
+  for (i = 0; i < 3; i ++)
+    cupsFileClose(cg->stdio_files[i]);
+
+  if (cg->last_status_message)
+    free(cg->last_status_message);
+
+  cupsFreeOptions(cg->cupsd_num_settings, cg->cupsd_settings);
+
   free(value);
 }
 
@@ -198,5 +205,5 @@ _cupsGlobals(void)
 
 
 /*
- * End of "$Id: globals.c 4922 2006-01-12 22:05:06Z mike $".
+ * End of "$Id: globals.c 7460 2008-04-16 02:19:54Z mike $".
  */