• Artur Grunau's avatar
    Fix a double free in LogHighlighter's destructor · 88d2e9a1
    Artur Grunau authored
    In its destructor, LogHighlighter first of all deleted its filter regex
    explicitly, and then called `setFilterRegExp(0)`, triggering a second —
    this time somewhat implicit — delete. If the filter regex pointer was
    not NULL, this caused the application to crash due to a double-free.
    Fix this error by not invoking `setFilterRegExp` in LogHighlighter's
    destructor; the explicit delete performs the same cleanup as
    `setFilterRegExp` anyways.
loghighlighter.cpp 6.36 KB