comctl32/tests: Fix a memory leak.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6c1118994c
commit
ba1eb91a69
|
@ -34,6 +34,7 @@ static BOOL (WINAPI *pRemoveWindowSubclass)(HWND, SUBCLASSPROC, UINT_PTR);
|
|||
static LRESULT (WINAPI *pDefSubclassProc)(HWND, UINT, WPARAM, LPARAM);
|
||||
static HIMAGELIST (WINAPI *pImageList_Create)(int, int, UINT, int, int);
|
||||
static int (WINAPI *pImageList_Add)(HIMAGELIST, HBITMAP, HBITMAP);
|
||||
static BOOL (WINAPI *pImageList_Destroy)(HIMAGELIST);
|
||||
|
||||
/****************** button message test *************************/
|
||||
#define ID_BUTTON 0x000e
|
||||
|
@ -82,6 +83,7 @@ static void init_functions(void)
|
|||
#define X(f) p##f = (void *)GetProcAddress(hmod, #f);
|
||||
X(ImageList_Create);
|
||||
X(ImageList_Add);
|
||||
X(ImageList_Destroy);
|
||||
#undef X
|
||||
}
|
||||
|
||||
|
@ -1352,6 +1354,8 @@ static void test_get_set_imagelist(void)
|
|||
|
||||
DestroyWindow(hwnd);
|
||||
}
|
||||
|
||||
pImageList_Destroy(himl);
|
||||
}
|
||||
|
||||
static void test_get_set_textmargin(void)
|
||||
|
|
Loading…
Reference in New Issue