Fixed up releasing DLLs in destructor

This commit is contained in:
selmer%netscape.com 1999-10-13 00:12:27 +00:00
parent ff236233af
commit df8e7ca097

View File

@ -39,13 +39,21 @@ extern _declspec (dllimport) WIDGET ptr_ga[1000];
CInterpret::CInterpret()
{
// Init linked list to avoid messing operations
// Init linked list to avoid messy operations on the linked list
m_DLLs.dllName = "";
m_DLLs.procName = "";
m_DLLs.next = NULL;
}
CInterpret::~CInterpret()
{
DLLINFO *dllp = m_DLLs.next;
while (dllp)
{
FreeLibrary(dllp->hDLL);
dllp = dllp->next;
}
}
BOOL CInterpret::InitInstance()