;+ ; NAME: ; spheretool_cleanup ; ; PURPOSE: ; Perform housekeeping tasks when SPHERETOOL exits. ; ; CATEGORY: ; Holographic video microscopy ; ; CALLING SEQUENCE: ; Internal routine. Not intended to be called independently ; spheretool_cleanup, w ; ; INPUTS: ; w: identifier of SPHERETOOL's base widget. ; ; SIDE EFFECTS: ; Frees the pointer used to preserve state information. ; ; MODIFICATION HISTORY: ; 03/20/2009 Written by David G. Grier, New York University ; ; Copyright (c) 2009-2010 David G. Grier. ; ; LICENSE: ; This program is free software; you can redistribute it and/or ; modify it under the terms of the GNU General Public License as ; published by the Free Software Foundation; either version 2 of the ; License, or (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ; General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ; 02111-1307 USA ; ; If the Internet and WWW are still functional when you are using ; this, you shold be able to access the GPL here: ; http://www.gnu.org/copyleft/gpl.html ;- pro spheretool_cleanup, w compile_opt idl2, hidden WIDGET_CONTROL, w, GET_UVALUE = s PTR_FREE, s end