Make sure to release the package we grabbed on the error path.

This commit is contained in:
Mike McCormack 2005-09-13 11:25:07 +00:00 committed by Alexandre Julliard
parent 348449a486
commit 2acf5086ff
1 changed files with 1 additions and 0 deletions

View File

@ -1787,6 +1787,7 @@ msi_dialog *msi_dialog_create( MSIPACKAGE* package, LPCWSTR szDialogName,
rec = msi_get_dialog_record( dialog );
if( !rec )
{
msiobj_release( &package->hdr );
HeapFree( GetProcessHeap(), 0, dialog );
return NULL;
}