Commit 147b25f4 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: fix double free on exit

parent 40c57dc9
......@@ -55,7 +55,7 @@ public:
if (ResetItems & RF_FREE)
for (int i = 0; i < Capacity; i++)
Xfree(m_items[i]);
DO_FREE_AND_NULL(m_items[i]);
if (ResetItems & RF_INIT)
for (int i = 0; i < Capacity; i++)
......
......@@ -427,12 +427,7 @@ static void osd_clear(int clearstrings = true)
osd->log.m_lineidx = 0;
if (clearstrings)
{
for (auto s : *osd->log.m_lines)
DO_FREE_AND_NULL(s);
osd->log.m_lines->clear();
}
mutex_unlock(&osd->log.mutex);
}
......
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