My code compiles and runs but produces an memory leak exception when closing. This is being caused by the line
FileChooser* fileChooser = new FileChooser (“Save presets to file…”, File::getCurrentWorkingDirectory(), “*.settings”);
I know that using std:unique_pointer will work but can’t find any good examples of how. Does anyone know to modify the above code to use std::unique_pointer and any resources that explain this or give an example of this?