mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 01:12:59 +08:00
[EXPLORER] Fix handle leaks (#8516)
JIRA issue: CORE-15616 JIRA issue: CORE-14382 The Explorer shell has multiple resource leaks causing handle exhaustion over extended use.
This commit is contained in:
@@ -276,7 +276,6 @@ public:
|
||||
if (!m_hThread)
|
||||
{
|
||||
m_bThreadRunning = FALSE;
|
||||
CloseHandle(m_hThread);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -1557,6 +1556,13 @@ public:
|
||||
|
||||
CloseThemeData(m_Theme);
|
||||
DeleteAllTasks();
|
||||
|
||||
if (m_ImageList)
|
||||
{
|
||||
ImageList_Destroy(m_ImageList);
|
||||
m_ImageList = NULL;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user