int unloadSite() { hashMap_Destroy( boardHashMap ); hashMap_Destroy( threadHashMap ); free(threadIndexPage); return 1; }
int AmmCaptcha_destroy() { hashMap_Destroy(captchaStrings); //Font RAW is a stack variable , do not destroy it! //destroyImage(&fontRAW); if(fontRAW.pixels!=0) { free(fontRAW.pixels); fontRAW.pixels=0; } return 1; }
int main(int argc, const char* argv[]) { int i=0; if (argc==1) { displayHelp(); return 0; } for (i=0; i<argc; i++) { if ( (strcmp(argv[i],"--help")==0) || (strcmp(argv[i],"-h")==0) || (strcmp(argv[i],"?")==0) ) { displayHelp(); return 0; } else if (strcmp(argv[i],"-n")==0) { printNotFoundLibs=1; printFoundLibs=0; } else if (strcmp(argv[i],"-f")==0) { printNotFoundLibs=0; printFoundLibs=1; } if (strcmp(argv[i],"-link")==0) { printFoundLibs=0; printNotFoundLibs=1; linkToLibraries=1; } if (strcmp(argv[i],"-maxDepth")==0) { maxDepth = atoi(argv[i+1]); } } hm = hashMap_Create(2000,1000,0); if ( hm == 0 ) { fprintf(stderr,"Could not create hashMap\n"); return 1; } runLdd((char*) argv[argc-1],0); hashMap_Destroy(hm); return 0; }