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
0fa33bb6
Commit
0fa33bb6
authored
Oct 23, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix memory leaks after calling ITypeInfo::GetNames.
parent
e1ee3b4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
tmarshal.c
dlls/oleaut32/tmarshal.c
+6
-10
No files found.
dlls/oleaut32/tmarshal.c
View file @
0fa33bb6
...
...
@@ -741,16 +741,6 @@ serialize_param(
ERR
(
"Could not get vardesc of %d
\n
"
,
i
);
return
hres
;
}
/* Need them for hack below */
/*
memset(names,0,sizeof(names));
hres = ITypeInfo_GetNames(tinfo2,vdesc->memid,names,sizeof(names)/sizeof(names[0]),&nrofnames);
if (nrofnames > sizeof(names)/sizeof(names[0])) {
ERR("Need more names!\n");
}
if (!hres && debugout)
TRACE_(olerelay)("%s=",relaystr(names[0]));
*/
elem2
=
&
vdesc
->
elemdescVar
;
tdesc2
=
&
elem2
->
tdesc
;
hres
=
serialize_param
(
...
...
@@ -1382,6 +1372,8 @@ xCall(LPVOID retptr, int method, TMProxyImpl *tpinfo /*, args */)
hres
=
remoteresult
;
exit:
for
(
i
=
0
;
i
<
nrofnames
;
i
++
)
SysFreeString
(
names
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
buf
.
base
);
IRpcChannelBuffer_Release
(
chanbuf
);
ITypeInfo_Release
(
tinfo
);
...
...
@@ -1849,6 +1841,10 @@ TMStubImpl_Invoke(
}
hres
=
xbuf_add
(
&
buf
,
(
LPBYTE
)
&
res
,
sizeof
(
DWORD
));
for
(
i
=
0
;
i
<
nrofnames
;
i
++
)
SysFreeString
(
names
[
i
]);
if
(
hres
!=
S_OK
)
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