msi: Avoid a crash in STREAMS_delete.
This commit is contained in:
parent
d9c52bfa70
commit
699cfc915a
|
@ -400,10 +400,14 @@ static UINT STREAMS_delete(struct tagMSIVIEW *view)
|
|||
|
||||
for (i = 0; i < sv->num_rows; i++)
|
||||
{
|
||||
if (sv->streams[i] && sv->streams[i]->stream)
|
||||
IStream_Release(sv->streams[i]->stream);
|
||||
msi_free(sv->streams[i]->name);
|
||||
msi_free(sv->streams[i]);
|
||||
if (sv->streams[i])
|
||||
{
|
||||
if (sv->streams[i]->stream)
|
||||
IStream_Release(sv->streams[i]->stream);
|
||||
|
||||
msi_free(sv->streams[i]->name);
|
||||
msi_free(sv->streams[i]);
|
||||
}
|
||||
}
|
||||
|
||||
msi_free(sv->streams);
|
||||
|
|
Loading…
Reference in New Issue