Skip to content
Snippets Groups Projects
Commit 9adb36ed authored by Eric Wait's avatar Eric Wait
Browse files

Made closing the ViewerControls more robust

parent 61c74bac
Branches
Tags
No related merge requests found
......@@ -142,10 +142,14 @@ function figure1_CloseRequestFcn(hObject, eventdata, handles)
global tmr Hulls Tracks Families orgImage processedImage distanceImage imageData Costs Colors selectedHull uiTreeFig uiControlHandles segImage channelData familyHulls trackHulls useDistance
lever_3d('close');
if ~isempty(tmr)
stop(tmr);
delete(tmr);
end
if ~isempty(uiTreeFig)
close(uiTreeFig);
end
clear mex
Hulls = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment