msi: Free the join view if we fail to create the table view.

This commit is contained in:
James Hawkins 2009-12-15 18:18:40 -08:00 committed by Alexandre Julliard
parent 1692e1fe67
commit b93c2c3544
1 changed files with 3 additions and 1 deletions

View File

@ -353,11 +353,13 @@ UINT JOIN_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR tables )
if( r != ERROR_SUCCESS )
{
WARN("can't create table: %s\n", debugstr_w(tables));
msi_free(table);
r = ERROR_BAD_QUERY_SYNTAX;
goto end;
}
r = table->view->ops->get_dimensions( table->view, NULL, &table->columns );
r = table->view->ops->get_dimensions( table->view, NULL,
&table->columns );
if( r != ERROR_SUCCESS )
{
ERR("can't get table dimensions\n");