Revert "window: Fix memory leak"

This reverts commit f4ddff14b916eab6172f4748b6a7a69a932545cc.

Does not make sense in this branch.