From: Daniel Lehman dlehman25@gmail.com
../dlls/msi/dialog.c:4476:11: warning: attempt to call free on non-heap object 'hdr' [-Wfree-nonheap-object] free( &rec->hdr ); ^ --- dlls/msi/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 91e7a567f55..1374f3b6274 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -4473,7 +4473,7 @@ static UINT event_set_target_path( msi_dialog *dialog, const WCHAR *argument ) r = MSI_SetTargetPathW( dialog->package, argument, path ); free( path ); } - free( &rec->hdr ); + msiobj_release( &rec->hdr ); return r; }