FreeVisualInfo(vi)
VOID FreeVisualInfo(APTR);
FreeVisualInfo() returns any memory or other resources that were allocated by
GetVisualInfoA(). You should only call this function once you are done with using the gadgets (i.e. after CloseWindow()), but while the screen is still valid (i.e. before CloseScreen() or UnlockPubScreen()).