My audio app runs fine and throws an exception when it closes. I am having memory leakage and I know I need to use std::unique_ptr to stop this but this is not working for the MidiOutput class. I have declared my object as follows:
MidiOutput *midiOutput = MidiOutput::openDevice(0);
how can I do this using std::unique_ptr or something similar.