mshtml: Release the image factory's dispex.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-01-03 18:27:04 +02:00 committed by Alexandre Julliard
parent 355eb6b91b
commit 5c3b285431

View file

@ -855,8 +855,10 @@ static ULONG WINAPI HTMLImageElementFactory_Release(IHTMLImageElementFactory *if
TRACE("(%p) ref=%ld\n", This, ref);
if(!ref)
if(!ref) {
release_dispex(&This->dispex);
free(This);
}
return ref;
}