% CB_GUICLOSED Closes the GUI.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% CB_GUICLOSED Closes the GUI.
%
% $Id: cb_guiClosed.m,v 1.1 2010/01/22 15:58:41 ingo Exp $
%

function cb_guiClosed(varargin)
  wb = getappdata(0, 'WorkspaceBrowser');
  if ~isempty(wb)
    delete(wb.h1);
    delete(wb.h2);
    delete(wb.h3);
    delete(wb.h4);
    delete(wb.h5);
    delete(wb.h6);
    delete(wb.h7);
    delete(wb.h8);
    delete(wb.h9);
    setappdata(0, 'WorkspaceBrowser', []);
    wb.hdl = [];
    java.lang.System.gc();
    disp('*** Goodbye from WorkspaceBrowser');
  end
  
end


