ieframe: Clear a being invalidated history entry.

update_travellog() in order to clear forward history calls free_travellog_entry() to
invalidate forward history entries, and when later an entry gets reused entry->stream
contains a no longer valid pointer.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2022-01-24 17:04:45 +03:00 committed by Alexandre Julliard
parent df261bcf95
commit 41cfc86d8d
1 changed files with 4 additions and 1 deletions

View File

@ -384,9 +384,12 @@ static LRESULT WINAPI doc_view_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
static void free_travellog_entry(travellog_entry_t *entry)
{
if(entry->stream)
if(entry->stream) {
IStream_Release(entry->stream);
entry->stream = NULL;
}
heap_free(entry->url);
entry->url = NULL;
}
static IStream *get_travellog_stream(DocHost *This)