mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
[SHELL32_APITEST]
* Plug some leaks. CIDs 1106362, 1106363 and 1106364. CORE-7975 svn path=/trunk/; revision=62474
This commit is contained in:
parent
3bce7d16d7
commit
2c26c653a9
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,11 @@ BOOL CheckWindowClass(HWND hwnd, PCWSTR className)
|
|||
{
|
||||
ULONG size = (wcslen(className) + 1)* sizeof(WCHAR);
|
||||
PWCHAR buffer = (PWCHAR)malloc(size);
|
||||
if (GetClassNameW(hwnd, buffer, size ) == 0) return FALSE;
|
||||
if (GetClassNameW(hwnd, buffer, size ) == 0)
|
||||
{
|
||||
free(buffer);
|
||||
return FALSE;
|
||||
}
|
||||
int res = wcscmp(buffer, className);
|
||||
free(buffer);
|
||||
return res == 0;
|
||||
|
@ -161,6 +165,7 @@ void test_CShellMenu()
|
|||
if (!CreateCShellMenu(&shellMenu, &dockingMenu, &menuWithSite))
|
||||
{
|
||||
skip("failed to create CShellMenuObject\n");
|
||||
delete dummyWindow;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -288,6 +293,7 @@ void test_CShellMenu_callbacks(IShellFolder *shellFolder, HMENU hmenu)
|
|||
if (!CreateCShellMenu(&shellMenu, &dockingMenu, &menuWithSite))
|
||||
{
|
||||
skip("failed to create CShellMenuObject\n");
|
||||
delete dummyWindow;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue