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
a7fe36b3
Commit
a7fe36b3
authored
Dec 13, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't free str until the last instance of its use.
parent
f4829063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
automation.c
dlls/msi/automation.c
+2
-3
No files found.
dlls/msi/automation.c
View file @
a7fe36b3
...
...
@@ -2084,7 +2084,7 @@ static HRESULT InstallerImpl_ProductInfo(WORD wFlags,
UINT
ret
;
HRESULT
hr
;
DWORD
size
;
LPWSTR
str
;
LPWSTR
str
=
NULL
;
VARIANTARG
varg0
,
varg1
;
if
(
!
(
wFlags
&
DISPATCH_PROPERTYGET
))
...
...
@@ -2118,8 +2118,6 @@ static HRESULT InstallerImpl_ProductInfo(WORD wFlags,
}
ret
=
MsiGetProductInfoW
(
V_BSTR
(
&
varg0
),
V_BSTR
(
&
varg1
),
str
,
&
size
);
msi_free
(
str
);
if
(
ret
!=
ERROR_SUCCESS
)
{
hr
=
DISP_E_EXCEPTION
;
...
...
@@ -2130,6 +2128,7 @@ static HRESULT InstallerImpl_ProductInfo(WORD wFlags,
hr
=
S_OK
;
done
:
msi_free
(
str
);
VariantClear
(
&
varg0
);
VariantClear
(
&
varg1
);
return
hr
;
...
...
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