shell: Fix the tons of memory leaks from settings
Make sure the individual config pages are deleted after the settings dialog is closed.
Detected by ASAN