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
10a6b808
Commit
10a6b808
authored
Dec 14, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Dec 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix previous EventObj leak.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
d38c1c10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
htmlevent.c
dlls/mshtml/htmlevent.c
+6
-3
No files found.
dlls/mshtml/htmlevent.c
View file @
10a6b808
...
@@ -3683,11 +3683,14 @@ static HRESULT dispatch_event_object(EventTarget *event_target, DOMEvent *event,
...
@@ -3683,11 +3683,14 @@ static HRESULT dispatch_event_object(EventTarget *event_target, DOMEvent *event,
*
r
=
variant_bool
(
!
event
->
prevent_default
);
*
r
=
variant_bool
(
!
event
->
prevent_default
);
if
(
target_vtbl
&&
target_vtbl
->
set_current_event
)
{
if
(
target_vtbl
&&
target_vtbl
->
set_current_event
)
{
prev_event
=
target_vtbl
->
set_current_event
(
&
event_target
->
dispex
,
prev_event
);
IHTMLEventObj
*
prev
=
target_vtbl
->
set_current_event
(
&
event_target
->
dispex
,
prev_event
);
if
(
prev
_event
)
if
(
prev
)
IHTMLEventObj_Release
(
prev
_event
);
IHTMLEventObj_Release
(
prev
);
}
}
if
(
prev_event
)
IHTMLEventObj_Release
(
prev_event
);
if
(
event_info
[
event
->
event_id
].
flags
&
EVENT_HASDEFAULTHANDLERS
)
{
if
(
event_info
[
event
->
event_id
].
flags
&
EVENT_HASDEFAULTHANDLERS
)
{
BOOL
prevent_default
=
event
->
prevent_default
;
BOOL
prevent_default
=
event
->
prevent_default
;
for
(
i
=
0
;
!
prevent_default
&&
i
<
chain_cnt
;
i
++
)
{
for
(
i
=
0
;
!
prevent_default
&&
i
<
chain_cnt
;
i
++
)
{
...
...
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