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
4ef24426
Commit
4ef24426
authored
Feb 17, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't free user32 objects with a gdi32 function in imagelist test.
Use DestroyIcon for releasing the resources associated with created icons.
parent
06f0e723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
imagelist.c
dlls/comctl32/tests/imagelist.c
+7
-9
No files found.
dlls/comctl32/tests/imagelist.c
View file @
4ef24426
...
...
@@ -340,10 +340,9 @@ static BOOL DoTest1(void)
/* destroy it */
ok
(
ImageList_Destroy
(
himl
),
"destroy imagelist failed
\n
"
);
/* icons should be deleted by the imagelist */
ok
(
!
DeleteObject
(
hicon1
),
"icon 1 wasn't deleted
\n
"
);
ok
(
!
DeleteObject
(
hicon2
),
"icon 2 wasn't deleted
\n
"
);
ok
(
!
DeleteObject
(
hicon3
),
"icon 3 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon1
),
"icon 1 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon2
),
"icon 2 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon3
),
"icon 3 wasn't deleted
\n
"
);
return
TRUE
;
}
...
...
@@ -376,10 +375,9 @@ static BOOL DoTest2(void)
/* destroy it */
ok
(
ImageList_Destroy
(
himl
),
"destroy imagelist failed
\n
"
);
/* icons should be deleted by the imagelist */
ok
(
!
DeleteObject
(
hicon1
),
"icon 1 wasn't deleted
\n
"
);
ok
(
!
DeleteObject
(
hicon2
),
"icon 2 wasn't deleted
\n
"
);
ok
(
!
DeleteObject
(
hicon3
),
"icon 3 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon1
),
"icon 1 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon2
),
"icon 2 wasn't deleted
\n
"
);
ok
(
DestroyIcon
(
hicon3
),
"icon 3 wasn't deleted
\n
"
);
return
TRUE
;
}
...
...
@@ -551,7 +549,7 @@ static void testMerge(void)
ImageList_Destroy
(
himl1
);
ImageList_Destroy
(
himl2
);
De
leteObject
(
hicon1
);
De
stroyIcon
(
hicon1
);
DestroyWindow
(
hwnd
);
}
...
...
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