Settings: Fix the memory leak in Settings