Fixed a heinous memory leak in LogWnd