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
f1517b15
Commit
f1517b15
authored
Apr 02, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Moved freeing travellog entry into a helper function.
parent
00226935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dochost.c
dlls/ieframe/dochost.c
+7
-2
No files found.
dlls/ieframe/dochost.c
View file @
f1517b15
...
...
@@ -333,6 +333,11 @@ static LRESULT WINAPI doc_view_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
}
static
void
free_travellog_entry
(
travellog_entry_t
*
entry
)
{
heap_free
(
entry
->
url
);
}
static
void
update_travellog
(
DocHost
*
This
)
{
travellog_entry_t
*
new_entry
;
...
...
@@ -357,7 +362,7 @@ static void update_travellog(DocHost *This)
}
while
(
This
->
travellog
.
length
>
This
->
travellog
.
position
)
heap_free
(
This
->
travellog
.
log
[
--
This
->
travellog
.
length
].
url
);
free_travellog_entry
(
This
->
travellog
.
log
+
--
This
->
travellog
.
length
);
}
new_entry
=
This
->
travellog
.
log
+
This
->
travellog
.
position
;
...
...
@@ -1013,7 +1018,7 @@ void DocHost_Release(DocHost *This)
ConnectionPointContainer_Destroy
(
&
This
->
cps
);
while
(
This
->
travellog
.
length
)
heap_free
(
This
->
travellog
.
log
[
--
This
->
travellog
.
length
].
url
);
free_travellog_entry
(
This
->
travellog
.
log
+
--
This
->
travellog
.
length
);
heap_free
(
This
->
travellog
.
log
);
heap_free
(
This
->
url
);
...
...
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