Commit 9bb0dbc1 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Fix leak in find_prev_space.

parent 8745b3f2
...@@ -741,8 +741,10 @@ static LONG find_prev_space(rangepoint_t *iter, BOOL first_space) ...@@ -741,8 +741,10 @@ static LONG find_prev_space(rangepoint_t *iter, BOOL first_space)
init_rangepoint(&prev, iter->node, iter->off); init_rangepoint(&prev, iter->node, iter->off);
c = move_prev_char(&prev); c = move_prev_char(&prev);
if(!c || (first_space && iswspace(c))) if(!c || (first_space && iswspace(c))) {
free_rangepoint(&prev);
return FALSE; return FALSE;
}
do { do {
free_rangepoint(iter); free_rangepoint(iter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment