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
8177b479
Commit
8177b479
authored
Aug 25, 2011
by
Octavian Voicu
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix leak in typelib marshaler when invoking IDispatch methods.
parent
82ef9f96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+6
-0
tmarshal.c
dlls/oleaut32/tmarshal.c
+11
-8
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
8177b479
...
...
@@ -1000,6 +1000,12 @@ static void test_typelibmarshal(void)
IKindaEnumWidget_Release
(
pKEW
);
/* call GetTypeInfoCount (direct) */
hr
=
IWidget_GetTypeInfoCount
(
pWidget
,
&
uval
);
ok_ole_success
(
hr
,
IWidget_GetTypeInfoCount
);
hr
=
IWidget_GetTypeInfoCount
(
pWidget
,
&
uval
);
ok_ole_success
(
hr
,
IWidget_GetTypeInfoCount
);
hr
=
IWidget_QueryInterface
(
pWidget
,
&
IID_IDispatch
,
(
void
**
)
&
pDispatch
);
ok_ole_success
(
hr
,
IWidget_QueryInterface
);
...
...
dlls/oleaut32/tmarshal.c
View file @
8177b479
...
...
@@ -2002,16 +2002,19 @@ TMStubImpl_Invoke(
if
(
This
->
dispatch_derivative
&&
xmsg
->
iMethod
<
sizeof
(
IDispatchVtbl
)
/
sizeof
(
void
*
))
{
IPSFactoryBuffer
*
factory_buffer
;
hres
=
get_facbuf_for_iid
(
&
IID_IDispatch
,
&
factory_buffer
);
if
(
hres
==
S_OK
)
if
(
!
This
->
dispatch_stub
)
{
hres
=
IPSFactoryBuffer_CreateStub
(
factory_buffer
,
&
IID_IDispatch
,
This
->
pUnk
,
&
This
->
dispatch_stub
);
IPSFactoryBuffer_Release
(
factory_buffer
);
IPSFactoryBuffer
*
factory_buffer
;
hres
=
get_facbuf_for_iid
(
&
IID_IDispatch
,
&
factory_buffer
);
if
(
hres
==
S_OK
)
{
hres
=
IPSFactoryBuffer_CreateStub
(
factory_buffer
,
&
IID_IDispatch
,
This
->
pUnk
,
&
This
->
dispatch_stub
);
IPSFactoryBuffer_Release
(
factory_buffer
);
}
if
(
hres
!=
S_OK
)
return
hres
;
}
if
(
hres
!=
S_OK
)
return
hres
;
return
IRpcStubBuffer_Invoke
(
This
->
dispatch_stub
,
xmsg
,
rpcchanbuf
);
}
...
...
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