Fixed up releasing DLLs in destructor

git-svn-id: svn://10.0.0.236/trunk@50519 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
selmer%netscape.com 1999-10-13 00:12:27 +00:00
parent 7519f0fc4c
commit 3f42f06246

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()