msi: Free the custom action data after the thread function executes.
This commit is contained in:
parent
5f960781fc
commit
747f19f011
|
@ -452,9 +452,6 @@ static UINT wait_thread_handle( msi_custom_action_info *info )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TRACE("%s running in background\n", debugstr_w( info->action ));
|
TRACE("%s running in background\n", debugstr_w( info->action ));
|
||||||
|
|
||||||
if (info->type & msidbCustomActionTypeContinue)
|
|
||||||
free_custom_action_data( info );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
@ -529,6 +526,10 @@ static DWORD WINAPI ACTION_CallDllFunction( const LPGUID guid )
|
||||||
|
|
||||||
FreeLibrary(hModule);
|
FreeLibrary(hModule);
|
||||||
|
|
||||||
|
if (info->type & msidbCustomActionTypeAsync &&
|
||||||
|
info->type & msidbCustomActionTypeContinue)
|
||||||
|
free_custom_action_data( info );
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue