Gabriel Ivăncescu : mshtml: Hold ref to HTMLDocumentObj when calling external code.
Module: wine Branch: master Commit: a62be201c87b02680d752753c2388d1d123711e6 URL: https://gitlab.winehq.org/wine/wine/-/commit/a62be201c87b02680d752753c2388d1... Author: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> Date: Wed Mar 8 19:36:06 2023 +0200 mshtml: Hold ref to HTMLDocumentObj when calling external code. It's possible for it (and the GeckoBrowser) to get detached and destroyed while processing an external callback notification. Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/mshtml/htmldoc.c | 6 +++- dlls/mshtml/mutation.c | 10 +++++-- dlls/mshtml/navigate.c | 75 ++++++++++++++++++++++++++++++++++---------------- dlls/mshtml/nsevents.c | 15 ++++++---- dlls/mshtml/nsio.c | 11 ++++++-- dlls/mshtml/olecmd.c | 9 +++++- dlls/mshtml/persist.c | 18 ++++++++---- dlls/mshtml/view.c | 3 ++ 8 files changed, 105 insertions(+), 42 deletions(-)
participants (1)
-
Alexandre Julliard