This fixes crashes cause by dangling pointer returned from TQTextCodec::codecForLocale(). That might happen when tqWarning() and such are called during final cleanup. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>