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

Clear out all internal globals when quiting the program

parent 1dff4c81
Branches
Tags
No related merge requests found
......@@ -142,7 +142,7 @@ end
% --- Executes when user attempts to close figure1.
function figure1_CloseRequestFcn(hObject, eventdata, handles)
global tmr Hulls Tracks Families orgImage processedImage distanceImage imageData Costs Colors selectedHull uiTreeFig uiControlHandles
global tmr Hulls Tracks Families orgImage processedImage distanceImage imageData Costs Colors selectedHull uiTreeFig uiControlHandles segImage channelData familyHulls trackHulls useDistance
lever_3d('close');
stop(tmr);
......@@ -162,6 +162,11 @@ Costs = [];
Colors = [];
selectedHull = [];
uiControlHandles = [];
segImage = [];
channelData = [];
familyHulls = [];
trackHulls = [];
useDistance = [];
delete(hObject);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment