Fix a few leaking object handles.

This commit is contained in:
Aric Stewart 2005-05-09 19:33:50 +00:00 committed by Alexandre Julliard
parent 9f50a88ff1
commit fa468e64d5
2 changed files with 4 additions and 0 deletions

View File

@ -656,12 +656,14 @@ static void ui_actiondata(MSIPACKAGE *package, LPCWSTR action, MSIRECORD * recor
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
{ {
MSI_ViewClose(view); MSI_ViewClose(view);
msiobj_release(&view->hdr);
return; return;
} }
rc = MSI_ViewFetch(view,&row); rc = MSI_ViewFetch(view,&row);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
{ {
MSI_ViewClose(view); MSI_ViewClose(view);
msiobj_release(&view->hdr);
return; return;
} }
@ -1713,6 +1715,7 @@ static void load_feature(MSIPACKAGE* package, MSIRECORD * row)
c_indx); c_indx);
package->features[index].Components[cnt] = c_indx; package->features[index].Components[cnt] = c_indx;
package->features[index].ComponentCount ++; package->features[index].ComponentCount ++;
msiobj_release( &row2->hdr );
continue; continue;
} }

View File

@ -1235,6 +1235,7 @@ void msi_dialog_destroy( msi_dialog *dialog )
if( dialog->hwnd ) if( dialog->hwnd )
DestroyWindow( dialog->hwnd ); DestroyWindow( dialog->hwnd );
msiobj_release( &dialog->package->hdr );
dialog->package = NULL; dialog->package = NULL;
HeapFree( GetProcessHeap(), 0, dialog ); HeapFree( GetProcessHeap(), 0, dialog );
} }