Carbon & Cocoa ExitCallback() implemenation is weird
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In the files vtkCocoaRenderWindowInteractor.mm and vtkCarbonRenderWindowInteractor.cxx the last function in the file is ExitCallback(). It looks like this:
void vtkCarbonRenderWindowInteractor::ExitCallback() { if (this->ClassExitMethod) { (*this->ClassExitMethod)(this->ClassExitMethodArg); } else if (this->ClassExitMethod) { (*this->ClassExitMethod)(this->ClassExitMethodArg); } else { this->TerminateApp(); } }
Notice the first 2 'if' tests. They both test the same thing. Is this a bug?!?! Maybe one of them should be checking ClassExitMethodArgDelete?