void stopRecord() { spinner.stop(); delete sync; delete subImageColor; delete subImageIr; delete subImageDepth; }
void stop() { spinner.stop(); if(useExact) { delete syncExact; } else { delete syncApproximate; } delete subImageColor; delete subImageDepth; delete subCameraInfoColor; delete subCameraInfoDepth; running = false; if(mode == BOTH) { imageViewerThread.join(); } }