summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 41e77068f..881be8bbe 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6818,7 +6818,7 @@ match_delete(wp, id, perr)
wp->w_match_head = cur->next;
else
prev->next = cur->next;
- vim_free(cur->match.regprog);
+ vim_regfree(cur->match.regprog);
vim_free(cur->pattern);
vim_free(cur);
redraw_later(SOME_VALID);
@@ -6837,7 +6837,7 @@ clear_matches(wp)
while (wp->w_match_head != NULL)
{
m = wp->w_match_head->next;
- vim_free(wp->w_match_head->match.regprog);
+ vim_regfree(wp->w_match_head->match.regprog);
vim_free(wp->w_match_head->pattern);
vim_free(wp->w_match_head);
wp->w_match_head = m;