Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a8502312
Commit
a8502312
authored
Mar 01, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix memory leaks.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7fba4ebb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
edit.c
dlls/comctl32/edit.c
+3
-1
listview.c
dlls/comctl32/listview.c
+1
-0
treeview.c
dlls/comctl32/treeview.c
+1
-0
No files found.
dlls/comctl32/edit.c
View file @
a8502312
...
@@ -2514,7 +2514,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, const WCHAR *lpsz_r
...
@@ -2514,7 +2514,7 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, const WCHAR *lpsz_r
abs
(
es
->
selection_end
-
es
->
selection_start
)
-
strl
,
hrgn
);
abs
(
es
->
selection_end
-
es
->
selection_start
)
-
strl
,
hrgn
);
strl
=
0
;
strl
=
0
;
e
=
s
;
e
=
s
;
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
SetRectRgn
(
hrgn
,
0
,
0
,
0
,
0
);
EDIT_NOTIFY_PARENT
(
es
,
EN_MAXTEXT
);
EDIT_NOTIFY_PARENT
(
es
,
EN_MAXTEXT
);
}
}
}
}
...
@@ -3674,6 +3674,8 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region)
...
@@ -3674,6 +3674,8 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region)
/* Call default proc to get the scrollbars etc. also painted */
/* Call default proc to get the scrollbars etc. also painted */
DefWindowProcW
(
hwnd
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
DefWindowProcW
(
hwnd
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
if
(
cliprgn
!=
region
)
DeleteObject
(
cliprgn
);
}
}
/*********************************************************************
/*********************************************************************
...
...
dlls/comctl32/listview.c
View file @
a8502312
...
@@ -10645,6 +10645,7 @@ static BOOL LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region)
...
@@ -10645,6 +10645,7 @@ static BOOL LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region)
/* Call default proc to get the scrollbars etc. painted */
/* Call default proc to get the scrollbars etc. painted */
DefWindowProcW
(
infoPtr
->
hwndSelf
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
DefWindowProcW
(
infoPtr
->
hwndSelf
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
DeleteObject
(
cliprgn
);
return
FALSE
;
return
FALSE
;
}
}
...
...
dlls/comctl32/treeview.c
View file @
a8502312
...
@@ -5468,6 +5468,7 @@ static BOOL TREEVIEW_NCPaint (const TREEVIEW_INFO *infoPtr, HRGN region, LPARAM
...
@@ -5468,6 +5468,7 @@ static BOOL TREEVIEW_NCPaint (const TREEVIEW_INFO *infoPtr, HRGN region, LPARAM
/* Call default proc to get the scrollbars etc. painted */
/* Call default proc to get the scrollbars etc. painted */
DefWindowProcW
(
infoPtr
->
hwnd
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
DefWindowProcW
(
infoPtr
->
hwnd
,
WM_NCPAINT
,
(
WPARAM
)
cliprgn
,
0
);
DeleteObject
(
cliprgn
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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