fixed Wlog_Uninit to also free child logger

This commit is contained in:
Martin Haimberger 2014-04-11 02:07:50 -07:00
parent a6c34c114e
commit dd62e88098

View File

@ -456,6 +456,15 @@ void WLog_Uninit()
{
wLog* root = WLog_GetRoot();
DWORD index;
wLog* child = NULL;
for (index = 0; index < root->ChildrenCount; index++)
{
child = root->Children[index];
WLog_Free(child);
}
WLog_Free(root);
g_RootLog = NULL;
}