CNewFileSelector objects were being leaked when using run (CallbackFunc&&) because of a retain cycle; the lambda assigned to impl->doneCallback added a SharedPointer to this that would never be freed.
Verified by adding a breakpoint on CNewFileSelector::~CNewFileSelector()
CNewFileSelector
objects were being leaked when usingrun (CallbackFunc&&)
because of a retain cycle; the lambda assigned toimpl->doneCallback
added aSharedPointer
tothis
that would never be freed.Verified by adding a breakpoint on
CNewFileSelector::~CNewFileSelector()