home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INTERNET / WWW / LYNX / SOURCE / SRC0_8A.ZIP / DOSLYNX / SRC / TFORM2.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  792 b   |  36 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TForm
  4. //    Include File:    tform.h
  5. //    Purpose:    Form container
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        07-18-94 Created.
  9. #include "tform.h"
  10. #include "trace.h"
  11.  
  12. TForm::~TForm()    {
  13. //    Purpose:    Destructor for a form.
  14. //    Arguments:    none
  15. //    Return Value:    none
  16. //    Remarks/Portability/Dependencies/Restrictions:
  17. //        Should release all parts of a form.
  18. //    Revision History:
  19. //        07-18-94    created
  20.  
  21. #ifndef RELEASE
  22.     trace("Freeing off form " << cp_action);
  23. #endif // RELEASE
  24.  
  25.     //    First, free off all members.
  26.     if(cp_action != NULL)    {
  27.         delete(cp_action);
  28.     }
  29.     if(cp_enctype != NULL)    {
  30.         delete(cp_enctype);
  31.     }
  32.     if(cp_method != NULL)    {
  33.         delete(cp_method);
  34.     }
  35. }
  36.