Cosmetic
Fix memory leak in querywindow