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
b4b7f05d
Commit
b4b7f05d
authored
May 23, 2005
by
Rob Shearman
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several memory leaks.
parent
371c620d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
registry.c
server/registry.c
+7
-1
window.c
server/window.c
+5
-1
No files found.
server/registry.c
View file @
b4b7f05d
...
...
@@ -320,11 +320,13 @@ static void key_destroy( struct object *obj )
free
(
key
->
values
[
i
].
name
);
if
(
key
->
values
[
i
].
data
)
free
(
key
->
values
[
i
].
data
);
}
if
(
key
->
values
)
free
(
key
->
values
);
for
(
i
=
0
;
i
<=
key
->
last_subkey
;
i
++
)
{
key
->
subkeys
[
i
]
->
parent
=
NULL
;
release_object
(
key
->
subkeys
[
i
]
);
}
if
(
key
->
subkeys
)
free
(
key
->
subkeys
);
/* unconditionally notify everything waiting on this key */
while
((
ptr
=
list_head
(
&
key
->
notify_list
)))
{
...
...
@@ -1671,7 +1673,11 @@ void close_registry(void)
if
(
save_timeout_user
)
remove_timeout_user
(
save_timeout_user
);
save_timeout_user
=
NULL
;
for
(
i
=
0
;
i
<
save_branch_count
;
i
++
)
release_object
(
save_branch_info
[
i
].
key
);
for
(
i
=
0
;
i
<
save_branch_count
;
i
++
)
{
release_object
(
save_branch_info
[
i
].
key
);
free
(
save_branch_info
[
i
].
path
);
}
release_object
(
root_key
);
}
...
...
server/window.c
View file @
b4b7f05d
...
...
@@ -838,7 +838,11 @@ static void set_update_region( struct window *win, struct region *region )
}
else
{
if
(
win
->
update_region
)
inc_window_paint_count
(
win
,
-
1
);
if
(
win
->
update_region
)
{
inc_window_paint_count
(
win
,
-
1
);
free_region
(
win
->
update_region
);
}
win
->
paint_flags
&=
~
(
PAINT_ERASE
|
PAINT_NONCLIENT
);
win
->
update_region
=
NULL
;
if
(
region
)
free_region
(
region
);
...
...
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