Fix refcounting of streams.
This commit is contained in:
parent
8ac61c5a1e
commit
7e168ee798
|
@ -235,7 +235,10 @@ UINT WINAPI MsiViewFetch(MSIHANDLE hView, MSIHANDLE *record)
|
|||
|
||||
db_get_raw_stream( query->db, full_name, &stm );
|
||||
if( stm )
|
||||
{
|
||||
MSI_RecordSetIStream( handle, i, stm );
|
||||
IStream_Release( stm );
|
||||
}
|
||||
else
|
||||
ERR("failed to get stream\n");
|
||||
HeapFree( GetProcessHeap(), 0, sval );
|
||||
|
|
|
@ -86,7 +86,7 @@ void MSI_CloseRecord( VOID *arg )
|
|||
MSIRECORD *rec = (MSIRECORD *) arg;
|
||||
UINT i;
|
||||
|
||||
for( i=0; i<rec->count; i++ )
|
||||
for( i=0; i<=rec->count; i++ )
|
||||
MSI_FreeField( &rec->fields[i] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue