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
362079cf
Commit
362079cf
authored
Sep 23, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memory leak.
parent
844c804b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
custom.c
dlls/msi/custom.c
+8
-12
No files found.
dlls/msi/custom.c
View file @
362079cf
...
...
@@ -154,10 +154,8 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
{
FIXME
(
"Rollback only action... rollbacks not supported yet
\n
"
);
schedule_action
(
package
,
ROLLBACK_SCRIPT
,
action
);
msi_free
(
source
);
msi_free
(
target
);
msiobj_release
(
&
row
->
hdr
);
return
ERROR_SUCCESS
;
rc
=
ERROR_SUCCESS
;
goto
end
;
}
if
(
!
execute
)
{
...
...
@@ -172,10 +170,8 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
schedule_action
(
package
,
INSTALL_SCRIPT
,
action
);
}
msi_free
(
source
);
msi_free
(
target
);
msiobj_release
(
&
row
->
hdr
);
return
ERROR_SUCCESS
;
rc
=
ERROR_SUCCESS
;
goto
end
;
}
else
{
...
...
@@ -194,8 +190,8 @@ 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
;
rc
=
ERROR_SUCCESS
;
goto
end
;
}
switch
(
type
&
CUSTOM_ACTION_TYPE_MASK
)
...
...
@@ -234,6 +230,7 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
debugstr_w
(
target
));
}
end:
msi_free
(
source
);
msi_free
(
target
);
msiobj_release
(
&
row
->
hdr
);
...
...
@@ -248,8 +245,7 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
static
const
WCHAR
f1
[]
=
{
'm'
,
's'
,
'i'
,
0
};
WCHAR
fmt
[
MAX_PATH
];
if
(
MSI_GetPropertyW
(
package
,
cszTempFolder
,
fmt
,
&
sz
)
!=
ERROR_SUCCESS
)
if
(
MSI_GetPropertyW
(
package
,
cszTempFolder
,
fmt
,
&
sz
)
!=
ERROR_SUCCESS
)
GetTempPathW
(
MAX_PATH
,
fmt
);
if
(
GetTempFileNameW
(
fmt
,
f1
,
0
,
tmp_file
)
==
0
)
...
...
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