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
962a5e77
Commit
962a5e77
authored
Apr 11, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Apr 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential region leak.
parent
eb9250bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
window.c
server/window.c
+4
-11
No files found.
server/window.c
View file @
962a5e77
...
...
@@ -713,7 +713,7 @@ static inline struct window *get_top_clipping_window( struct window *win )
/* compute the visible region of a window, in window coordinates */
static
struct
region
*
get_visible_region
(
struct
window
*
win
,
struct
window
*
top
,
unsigned
int
flags
)
{
struct
region
*
tmp
,
*
region
;
struct
region
*
tmp
=
NULL
,
*
region
;
int
offset_x
,
offset_y
;
if
(
!
(
region
=
create_empty_region
()))
return
NULL
;
...
...
@@ -767,16 +767,8 @@ static struct region *get_visible_region( struct window *win, struct window *top
offset_y
+=
win
->
client_rect
.
top
;
offset_region
(
region
,
win
->
client_rect
.
left
,
win
->
client_rect
.
top
);
set_region_client_rect
(
tmp
,
win
);
if
(
win
->
win_region
&&
!
intersect_window_region
(
tmp
,
win
))
{
free_region
(
tmp
);
goto
error
;
}
if
(
!
intersect_region
(
region
,
region
,
tmp
))
{
free_region
(
tmp
);
goto
error
;
}
if
(
win
->
win_region
&&
!
intersect_window_region
(
tmp
,
win
))
goto
error
;
if
(
!
intersect_region
(
region
,
region
,
tmp
))
goto
error
;
if
(
is_region_empty
(
region
))
break
;
}
free_region
(
tmp
);
...
...
@@ -785,6 +777,7 @@ static struct region *get_visible_region( struct window *win, struct window *top
return
region
;
error:
if
(
tmp
)
free_region
(
tmp
);
free_region
(
region
);
return
NULL
;
}
...
...
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