[controls] fix memory leak in Window
#13400
+76
−8
Merged
Window
#13400