Fix memory leaks in Audio setup tab in the settings dialog