mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Fixed up releasing DLLs in destructor
This commit is contained in:
parent
ff236233af
commit
df8e7ca097
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user