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
66a44e3c
Commit
66a44e3c
authored
Jul 30, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Jul 30, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a memory leak.
parent
4d550350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tab.c
dlls/comctl32/tab.c
+8
-0
No files found.
dlls/comctl32/tab.c
View file @
66a44e3c
...
...
@@ -798,7 +798,10 @@ static void TAB_DrawItem(
* Background color.
*/
if
(
!
(
lStyle
&
TCS_OWNERDRAWFIXED
))
{
DeleteObject
(
hbr
);
hbr
=
CreateSolidBrush
(
GetSysColor
(
COLOR_3DHILIGHT
));
}
/*
* Erase the background.
...
...
@@ -847,6 +850,7 @@ static void TAB_DrawItem(
/*
* Background color.
*/
DeleteObject
(
hbr
);
hbr
=
CreateSolidBrush
(
GetSysColor
(
COLOR_BTNFACE
));
/*
...
...
@@ -961,6 +965,8 @@ static void TAB_DrawItem(
*/
SetBkMode
(
hdc
,
oldBkMode
);
SelectObject
(
hdc
,
holdPen
);
DeleteObject
(
hfocusPen
);
DeleteObject
(
hbr
);
}
}
...
...
@@ -1097,6 +1103,8 @@ static LRESULT TAB_EraseBackground(
if
(
givenDC
==
0
)
ReleaseDC
(
hwnd
,
hdc
);
DeleteObject
(
brush
);
return
0
;
}
...
...
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