Revert "Fix memory leak in subtitle code"

Cause crashes when playing DVD

This reverts commit 7cd75a214ef7e79595cf50b79d91882442572ced.
Fix leak in display subtitle code.

172 bytes would be leaked after each new subtitles in DVD, and 160 bytes with other types of subtitles.
Revert "Tidy up code in logging"

Nicer patch to follow

This reverts commit c8b359dfec03574bbfb30e2ea7ed0584d34de94d.
Fix leak in logger

setThreadName can be called twice, obfuscating the previously allocated string

Fixes #12131