00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 static char *id="@(#) $Id: shend.c,v 1.2 2006/08/17 19:28:17 mhender Exp $";
00018
00019 #include <shInternal.h>
00020
00023 extern char *shOutputName;
00024
00025
00026
00027 void shfreeStrings(void);
00028
00032 void shend()
00033 {
00034 int i;
00035
00036 if(shOutputName!=(char*)NULL)free(shOutputName);
00037 shfreeStrings();
00038
00039 if(shRedBuffer!=(unsigned char*)NULL)free(shRedBuffer);
00040 if(shGreenBuffer!=(unsigned char*)NULL)free(shGreenBuffer);
00041 if(shBlueBuffer!=(unsigned char*)NULL)free(shBlueBuffer);
00042 if(shZBuffer!=(float*)NULL)free(shZBuffer);
00043
00044 if(sh_kfont!=(int*)NULL)free(sh_kfont);
00045 if(sh_dir!=(int*)NULL)free(sh_dir);
00046 if(sh_fmag!=(int*)NULL)free(sh_fmag);
00047 if(sh_image!=(char*)NULL)free(sh_image);
00048 for(i=0;i<sh_nFonts;i++)
00049 if(sh_fontnm[i]!=(char*)NULL)free(sh_fontnm[i]);
00050 if(sh_fontnm!=(char**)NULL)free(sh_fontnm);
00051
00052 if(sh_rs!=(int*)NULL)free(sh_rs);
00053 if(sh_gs!=(int*)NULL)free(sh_gs);
00054 if(sh_bs!=(int*)NULL)free(sh_bs);
00055 if(sh_type!=(int*)NULL)free(sh_type);
00056 if(sh_lit!=(double*)NULL)free(sh_lit);
00057
00058 if(sh_plno!=(float*)NULL)free(sh_plno);
00059 if(sh_plnn!=(float*)NULL)free(sh_plnn);
00060 if(sh_ipln!=(int*)NULL)free(sh_ipln);
00061 if(sh_oper!=(int*)NULL)free(sh_oper);
00062
00063 return;
00064 }