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
2db311a8
Commit
2db311a8
authored
Apr 27, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Dangling pointers fix.
parent
c6d0d6d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
comboex.c
dlls/comctl32/comboex.c
+3
-1
trackbar.c
dlls/comctl32/trackbar.c
+2
-1
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/comboex.c
View file @
2db311a8
...
...
@@ -1600,9 +1600,11 @@ static LRESULT COMBOEX_Destroy (COMBOEX_INFO *infoPtr)
if
(
infoPtr
->
defaultFont
)
DeleteObject
(
infoPtr
->
defaultFont
);
SetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
0
,
0
);
/* free comboex info data */
Free
(
infoPtr
);
SetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
0
,
0
);
return
0
;
}
...
...
dlls/comctl32/trackbar.c
View file @
2db311a8
...
...
@@ -1452,9 +1452,10 @@ TRACKBAR_Destroy (TRACKBAR_INFO *infoPtr)
if
(
infoPtr
->
hwndToolTip
)
DestroyWindow
(
infoPtr
->
hwndToolTip
);
Free
(
infoPtr
);
SetWindowLongPtrW
(
infoPtr
->
hwndSelf
,
0
,
0
);
CloseThemeData
(
GetWindowTheme
(
infoPtr
->
hwndSelf
));
Free
(
infoPtr
);
return
0
;
}
...
...
dlls/comctl32/treeview.c
View file @
2db311a8
...
...
@@ -1019,7 +1019,6 @@ static void
TREEVIEW_FreeItem
(
TREEVIEW_INFO
*
infoPtr
,
TREEVIEW_ITEM
*
item
)
{
DPA_DeletePtr
(
infoPtr
->
items
,
DPA_GetPtrIndex
(
infoPtr
->
items
,
item
));
Free
(
item
);
if
(
infoPtr
->
selectedItem
==
item
)
infoPtr
->
selectedItem
=
NULL
;
if
(
infoPtr
->
hotItem
==
item
)
...
...
@@ -1032,6 +1031,7 @@ TREEVIEW_FreeItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item)
infoPtr
->
dropItem
=
NULL
;
if
(
infoPtr
->
insertMarkItem
==
item
)
infoPtr
->
insertMarkItem
=
NULL
;
Free
(
item
);
}
...
...
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