Fix leaks

CID #716336
CID #716337

svn path=/trunk/; revision=62654
This commit is contained in:
Pierre Schweitzer 2014-04-06 13:38:06 +00:00
parent a322341b4c
commit abab3274cd
2 changed files with 4 additions and 1 deletions

View file

@ -288,7 +288,7 @@ AddListViewItems(HWND hwndDlg, PDATA pData)
}
if(!FindNextFile(hFind, &fd))
hFind = INVALID_HANDLE_VALUE;
break;
}
token = _tcstok(NULL, separators);

View file

@ -65,7 +65,10 @@ GetCurrentScreenSaverValue(LPTSTR lpValue)
(LPBYTE)lpBuf,
&BufSize);
if (Ret != ERROR_SUCCESS)
{
HeapFree(GetProcessHeap(), 0, lpBuf);
lpBuf = NULL;
}
}
}