[WINESYNC] msi: Fix a leak on error path (Coverity).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id fe91ae51f1553875c1858df264c0603877d50737 by Sven Baars <sven.wine@gmail.com>
This commit is contained in:
winesync 2022-03-13 18:51:49 +01:00 committed by Mark Jansen
parent 9e09d87f83
commit 64fe3dd207
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -4036,7 +4036,11 @@ static msi_dialog *dialog_create( MSIPACKAGE *package, const WCHAR *name, msi_di
msiobj_release( &rec->hdr );
rec = MSI_CreateRecord(2);
if (!rec) return NULL;
if (!rec)
{
msi_dialog_destroy(dialog);
return NULL;
}
MSI_RecordSetStringW(rec, 1, name);
MSI_RecordSetStringW(rec, 2, szDialogCreated);
MSI_ProcessMessage(package, INSTALLMESSAGE_ACTIONSTART, rec);