Commit 747f19f0 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Free the custom action data after the thread function executes.

parent 5f960781
......@@ -452,9 +452,6 @@ static UINT wait_thread_handle( msi_custom_action_info *info )
else
{
TRACE("%s running in background\n", debugstr_w( info->action ));
if (info->type & msidbCustomActionTypeContinue)
free_custom_action_data( info );
}
return rc;
......@@ -529,6 +526,10 @@ static DWORD WINAPI ACTION_CallDllFunction( const LPGUID guid )
FreeLibrary(hModule);
if (info->type & msidbCustomActionTypeAsync &&
info->type & msidbCustomActionTypeContinue)
free_custom_action_data( info );
return r;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment