;+ ; NAME: ; RemoteView_Destroy ; PURPOSE: ; Clean up heap variables ; CATEGORY: ; RemoteView package ; CALLING SEQUENCE: PRO RemoteView_Destroy, M3D=M3D, V3D=V3D, D3D=D3D ; INPUTS: ; M3D array[1]; type: structure ; V3D array[1]; type: structure ; D3D array[1]; type: structure ; OUTPUTS: ; (none) ; INCLUDE: @compile_opt.pro ; On error, return to caller ; PROCEDURE: ; Destroy heap variables associated with the M3D, V3D and D3D structures ; MODIFICATION HISTORY: ; JULY-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ;- IF n_elements(M3D) NE 0 THEN ptr_free, M3D.Time, M3D.F3D, M3D.B3D, M3D.Lng0 IF n_elements(V3D) NE 0 THEN ptr_free, V3D.Time, V3D.Loc, V3D.Dir, V3D.Fov, V3D.Tilt IF n_elements(D3D) NE 0 THEN ptr_free, D3D.BodyMap RETURN & END