Patched memory leak in RegexHighlightView

fixed memory leak in RegexHighlightView