Module: wine Branch: master Commit: 8745b3f272082ab10e1ea2b169ffd60ac6e106b7 URL: https://gitlab.winehq.org/wine/wine/-/commit/8745b3f272082ab10e1ea2b169ffd60...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Thu Jul 6 19:57:51 2023 +0300
mshtml: Fix leak when moving to next char in range point.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/range.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/mshtml/range.c b/dlls/mshtml/range.c index e88d8901268..5bd6a8414cb 100644 --- a/dlls/mshtml/range.c +++ b/dlls/mshtml/range.c @@ -622,6 +622,9 @@ static WCHAR move_next_char(rangepoint_t *iter) } }while(rangepoint_next_node(iter));
+ if(cspace) + free_rangepoint(&last_space); + return cspace; }