2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 /* cleanup.c -- here are all functions used before exiting program */
12 #include "procedure.h"
13 #include "variables.h"
16 /* External variables */
17 extern ScriptArg script
;
18 extern InstallerPrefs preferences
;
22 void free_script(ScriptArg
*first
)
26 free_script(first
->cmd
);
27 free_script(first
->next
);
35 if (preferences
.transcriptstream
!= BNULL
)
37 Close(preferences
.transcriptstream
);
40 free_script(script
.cmd
);
43 Locale_Deinitialize();
49 fprintf(stderr
, "Couldn't allocate memory!\n");
55 void outofmem(void * ptr
)
60 traperr("Out of memory!\n", NULL
);