long 		MIWMagic = 0;
long 		MIWMagic = 0, i;
void Shutdown(void){	WindowPtr	frontWin;	long 		MIWMagic = 0;#if (SDINST_IS_DLL == 1) && (MOZILLA == 0)	UnloadSDLib(&gConnID);#endif	NavUnload();	/* deallocate config object */	// TO DO		/* deallocate options object */	if (gControls->opt && gControls->opt->folder)	{		DisposePtr((Ptr) gControls->opt->folder);		DisposePtr((Ptr) gControls->opt);	}		/* deallocate all controls */	#if 0/* XXX gets disposed by DisposeWindow() ? */	if (gControls->nextB)		DisposeControl(gControls->nextB);  	if (gControls->backB)		DisposeControl(gControls->backB);#endif		if (gControls->lw)		DisposePtr( (char*) gControls->lw);	if (gControls->ww)		DisposePtr( (char*) gControls->ww);	if (gControls->stw)		DisposePtr( (char*) gControls->stw);	if (gControls->cw)		DisposePtr( (char*) gControls->cw);	if (gControls->tw)		DisposePtr( (char*) gControls->tw);		if (gControls)		DisposePtr( (char*) gControls);				frontWin = FrontWindow();	MIWMagic = GetWRefCon(frontWin);	if (MIWMagic != kMIWMagic)		if (gWPtr)			BringToFront(gWPtr);	if (gWPtr)	{		HideWindow(gWPtr);		DisposeWindow(gWPtr);	}}