Docs » Autodocs » gadtools.library » FreeVisualInfo
FreeVisualInfo -- return any resources taken by GetVisualInfo. (V36)
FreeVisualInfo(vi) A0 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()).
vi - pointer that was obtained by calling GetVisualInfoA(). This value may be NULL.
GetVisualInfoA()
|