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
832d4eb2
Commit
832d4eb2
authored
Aug 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use task destructor for navigate task.
parent
7247eaa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
htmlwindow.c
dlls/mshtml/htmlwindow.c
+8
-3
No files found.
dlls/mshtml/htmlwindow.c
View file @
832d4eb2
...
...
@@ -1741,9 +1741,15 @@ static void navigate_proc(task_t *_task)
if
(
SUCCEEDED
(
hres
))
hres
=
start_binding
(
task
->
window
,
NULL
,
(
BSCallback
*
)
task
->
bscallback
,
NULL
);
}
static
void
navigate_task_destr
(
task_t
*
_task
)
{
navigate_task_t
*
task
=
(
navigate_task_t
*
)
_task
;
IUnknown_Release
((
IUnknown
*
)
task
->
bscallback
);
IHTMLWindow2_Release
(
&
task
->
window
->
IHTMLWindow2_iface
);
IMoniker_Release
(
task
->
mon
);
heap_free
(
task
);
}
static
HRESULT
WINAPI
HTMLPrivateWindow_SuperNavigate
(
IHTMLPrivateWindow
*
iface
,
BSTR
url
,
BSTR
arg2
,
BSTR
arg3
,
...
...
@@ -1843,11 +1849,10 @@ static HRESULT WINAPI HTMLPrivateWindow_SuperNavigate(IHTMLPrivateWindow *iface,
return
E_OUTOFMEMORY
;
}
IHTMLWindow2_AddRef
(
&
This
->
IHTMLWindow2_iface
);
task
->
window
=
This
;
task
->
bscallback
=
bsc
;
task
->
mon
=
mon
;
push_task
(
&
task
->
header
,
navigate_proc
,
NULL
,
This
->
task_magic
);
push_task
(
&
task
->
header
,
navigate_proc
,
navigate_task_destr
,
This
->
task_magic
);
/* Silently and repeated when real loading starts? */
This
->
readystate
=
READYSTATE_LOADING
;
...
...
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