Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ba1eb91a
Commit
ba1eb91a
authored
Aug 29, 2018
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix a memory leak.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c111899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
button.c
dlls/comctl32/tests/button.c
+6
-2
No files found.
dlls/comctl32/tests/button.c
View file @
ba1eb91a
...
...
@@ -32,8 +32,9 @@
static
BOOL
(
WINAPI
*
pSetWindowSubclass
)(
HWND
,
SUBCLASSPROC
,
UINT_PTR
,
DWORD_PTR
);
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
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment