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
923484bd
Commit
923484bd
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 set_downloading task.
parent
9f77da60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
persist.c
dlls/mshtml/persist.c
+9
-2
No files found.
dlls/mshtml/persist.c
View file @
923484bd
...
...
@@ -166,7 +166,6 @@ static void set_downloading_proc(task_t *_task)
TRACE
(
"(%p)
\n
"
,
doc
);
set_statustext
(
doc
,
IDS_STATUS_DOWNLOADINGFROM
,
task
->
url
);
CoTaskMemFree
(
task
->
url
);
if
(
task
->
set_download
)
set_download_state
(
doc
,
1
);
...
...
@@ -188,6 +187,14 @@ static void set_downloading_proc(task_t *_task)
}
}
static
void
set_downloading_task_destr
(
task_t
*
_task
)
{
download_proc_task_t
*
task
=
(
download_proc_task_t
*
)
_task
;
CoTaskMemFree
(
task
->
url
);
heap_free
(
task
);
}
void
prepare_for_binding
(
HTMLDocument
*
This
,
IMoniker
*
mon
,
IBindCtx
*
pibc
,
BOOL
navigated_binding
)
{
HRESULT
hres
;
...
...
@@ -303,7 +310,7 @@ HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, nsChannel
download_task
->
doc
=
This
->
doc_obj
;
download_task
->
set_download
=
set_download
;
download_task
->
url
=
url
;
push_task
(
&
download_task
->
header
,
set_downloading_proc
,
NULL
,
This
->
doc_obj
->
basedoc
.
task_magic
);
push_task
(
&
download_task
->
header
,
set_downloading_proc
,
set_downloading_task_destr
,
This
->
doc_obj
->
basedoc
.
task_magic
);
return
S_OK
;
}
...
...
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