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
470f23d4
Commit
470f23d4
authored
Sep 22, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix various memory leaks.
parent
994382b2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
+16
-4
action.c
dlls/msi/action.c
+1
-0
cond.y
dlls/msi/cond.y
+7
-0
custom.c
dlls/msi/custom.c
+3
-0
files.c
dlls/msi/files.c
+3
-4
helpers.c
dlls/msi/helpers.c
+2
-0
No files found.
dlls/msi/action.c
View file @
470f23d4
...
...
@@ -3967,6 +3967,7 @@ static UINT ITERATE_PublishComponent(MSIRECORD *rec, LPVOID param)
output
=
msi_alloc
(
sz
);
memset
(
output
,
0
,
sz
);
strcpyW
(
output
,
advertise
);
msi_free
(
advertise
);
if
(
text
)
strcatW
(
output
,
text
);
...
...
dlls/msi/cond.y
View file @
470f23d4
...
...
@@ -182,6 +182,7 @@ term:
|
value_s
{
$$
=
($
1
&&
$
1
[
0
])
?
MSICONDITION_TRUE
:
MSICONDITION_FALSE
;
msi_free
(
$
1
);
}
|
value_i
comp_op_i
value_i
{
...
...
@@ -190,18 +191,24 @@ term:
|
value_s
comp_op_s
value_s
{
$$
=
$
2
(
$
1
,
$
3
,
FALSE
);
msi_free
(
$
1
);
msi_free
(
$
3
);
}
|
value_s
COND_TILDA
comp_op_s
value_s
{
$$
=
$
3
(
$
1
,
$
4
,
TRUE
);
msi_free
(
$
1
);
msi_free
(
$
4
);
}
|
value_s
comp_op_m1
value_i
{
$$
=
$
2
(
$
1
,
$
3
);
msi_free
(
$
1
);
}
|
value_i
comp_op_m2
value_s
{
$$
=
$
2
(
$
1
,
$
3
);
msi_free
(
$
3
);
}
|
COND_LPAR
expression
COND_RPAR
{
...
...
dlls/msi/custom.c
View file @
470f23d4
...
...
@@ -193,7 +193,10 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
}
}
else
if
(
!
check_execution_scheduling_options
(
package
,
action
,
type
))
{
msiobj_release
(
&
row
->
hdr
);
return
ERROR_SUCCESS
;
}
switch
(
type
&
CUSTOM_ACTION_TYPE_MASK
)
{
...
...
dlls/msi/files.c
View file @
470f23d4
...
...
@@ -214,18 +214,17 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
given_file
=
strdupAtoW
(
pfdin
->
psz1
);
f
=
get_loaded_file
(
data
->
package
,
given_file
);
msi_free
(
given_file
);
if
(
!
f
)
{
ERR
(
"Unknown File in Cabinent (%s)
\n
"
,
debugstr_w
(
given_file
));
msi_free
(
given_file
);
ERR
(
"Unknown File in Cabinet (%s)
\n
"
,
debugstr_a
(
pfdin
->
psz1
));
return
0
;
}
if
(
!
((
f
->
State
==
1
||
f
->
State
==
2
)))
{
TRACE
(
"Skipping extraction of %s
\n
"
,
debugstr_w
(
given_file
));
msi_free
(
given_file
);
TRACE
(
"Skipping extraction of %s
\n
"
,
debugstr_a
(
pfdin
->
psz1
));
return
0
;
}
...
...
dlls/msi/helpers.c
View file @
470f23d4
...
...
@@ -599,6 +599,8 @@ void ACTION_free_package_structures( MSIPACKAGE* package)
msi_free
(
package
->
PackagePath
);
msi_free
(
package
->
msiFilePath
);
msi_free
(
package
->
ProductCode
);
msi_free
(
package
->
ActionFormat
);
msi_free
(
package
->
LastAction
);
/* cleanup control event subscriptions */
ControlEvent_CleanupSubscriptions
(
package
);
...
...
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