Fixed memory leak in WidgetLoggerEngineFrontend.
Fixing a bunch of memory leaks.