Module: wine Branch: master Commit: 5c3b2854315c5c084eb29b869cd2d8819981f826 URL: https://gitlab.winehq.org/wine/wine/-/commit/5c3b2854315c5c084eb29b869cd2d88...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Tue Jan 3 18:27:04 2023 +0200
mshtml: Release the image factory's dispex.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/htmlimg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/mshtml/htmlimg.c b/dlls/mshtml/htmlimg.c index c0333cab858..01cc8405f87 100644 --- a/dlls/mshtml/htmlimg.c +++ b/dlls/mshtml/htmlimg.c @@ -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; }