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
93dfdf7a
Commit
93dfdf7a
authored
Oct 26, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix some memory leaks in the class factory proxy.
parent
7cbafd4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
oleproxy.c
dlls/ole32/oleproxy.c
+8
-1
No files found.
dlls/ole32/oleproxy.c
View file @
93dfdf7a
...
...
@@ -382,11 +382,14 @@ static HRESULT WINAPI CFProxy_CreateInstance(
hres
=
IRpcChannelBuffer_SendReceive
(
This
->
chanbuf
,
&
msg
,
&
srstatus
);
if
(
hres
)
{
FIXME
(
"IRpcChannelBuffer_SendReceive failed with %x?
\n
"
,
hres
);
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
return
hres
;
}
if
(
!
msg
.
cbBuffer
)
/* interface not found on remote */
if
(
!
msg
.
cbBuffer
)
{
/* interface not found on remote */
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
return
srstatus
;
}
/* We got back: [Marshalled Interface data] */
TRACE
(
"got %d bytes data.
\n
"
,
msg
.
cbBuffer
);
...
...
@@ -395,6 +398,7 @@ static HRESULT WINAPI CFProxy_CreateInstance(
hres
=
CreateStreamOnHGlobal
(
hGlobal
,
TRUE
,
&
pStream
);
if
(
hres
)
{
FIXME
(
"CreateStreamOnHGlobal failed with %x
\n
"
,
hres
);
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
return
hres
;
}
hres
=
CoUnmarshalInterface
(
...
...
@@ -403,6 +407,9 @@ static HRESULT WINAPI CFProxy_CreateInstance(
ppv
);
IStream_Release
(
pStream
);
/* Does GlobalFree hGlobal too. */
IRpcChannelBuffer_FreeBuffer
(
This
->
chanbuf
,
&
msg
);
if
(
hres
)
{
FIXME
(
"CoMarshalInterface failed, %x
\n
"
,
hres
);
return
hres
;
...
...
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