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
fbe682a2
Commit
fbe682a2
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Don't leak memory allocated by ProgIDFromCLSID (coverity).
parent
4d796458
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
clipboard.c
dlls/ole32/clipboard.c
+1
-0
storage32.c
dlls/ole32/storage32.c
+1
-0
No files found.
dlls/ole32/clipboard.c
View file @
fbe682a2
...
...
@@ -664,6 +664,7 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt)
WideCharToMultiByte
(
CP_ACP
,
0
,
strProgID
,
-
1
,
strOleTypeName
,
sizeof
(
strOleTypeName
),
NULL
,
NULL
);
STORAGE_CreateOleStream
(
std
.
u
.
pstg
,
0
);
OLECONVERT_CreateCompObjStream
(
std
.
u
.
pstg
,
strOleTypeName
);
CoTaskMemFree
(
strProgID
);
}
}
...
...
dlls/ole32/storage32.c
View file @
fbe682a2
...
...
@@ -9075,6 +9075,7 @@ static HRESULT OLECONVERT_GetOLE10ProgID(LPSTORAGE pStorage, char *strProgID, DW
if
(
hRes
==
S_OK
)
{
*
dwSize
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wstrProgID
,
-
1
,
strProgID
,
*
dwSize
,
NULL
,
FALSE
);
CoTaskMemFree
(
wstrProgID
);
}
}
...
...
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