Fix memory leak in `GraphicsView` class.
Fix potential segmentation fault in `test_window_management.cpp`.
Fix memory leak when the user forgets to close windows.
Refactor functions that create windows.
Remove commented lines.
Fix implementation of window creation functions.
Reformatted member attribute declaration in `GraphicsView` class.
Fix indentation issues.