Commit 7e168ee7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix refcounting of streams.

parent 8ac61c5a
......@@ -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] );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment