Commit 786869b1 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: move osdstrings cleanup out of engineUnInit() and into OSD_Cleanup()

parent bad080c0
...@@ -8688,9 +8688,6 @@ void engineUnInit(void) ...@@ -8688,9 +8688,6 @@ void engineUnInit(void)
pskynummultis = 0; pskynummultis = 0;
DO_FREE_AND_NULL(g_defNamePtr); DO_FREE_AND_NULL(g_defNamePtr);
for (auto s : osdstrings)
Xfree(s);
} }
......
...@@ -643,6 +643,10 @@ void OSD_Cleanup(void) ...@@ -643,6 +643,10 @@ void OSD_Cleanup(void)
DO_FREE_AND_NULL(osd->version.buf); DO_FREE_AND_NULL(osd->version.buf);
MAYBE_FCLOSE_AND_NULL(osdlog); MAYBE_FCLOSE_AND_NULL(osdlog);
for (auto s : osdstrings)
DO_FREE_AND_NULL(s);
DO_FREE_AND_NULL(osd); DO_FREE_AND_NULL(osd);
} }
......
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