Added pre_window_destroy for input provider. This resolves a leak on builds that use X11
Additional extraneous comment removal. More fixes from valgrind (uninitialized values and potentially unfreed visual)