home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / turlvi20.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.3 KB  |  50 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TURLView
  4. //    Include File:    turlview.h
  5. //    Purpose:    Provide a view to see a url.
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        02-18-94    created
  9. #include"turlview.h"
  10. #include"trace.h"
  11.  
  12. void TURLView::shutDown()    {
  13. //    Purpose:    Provide TurboVision with a way to correctly destroy
  14. //            a TURLView object.
  15. //    Arguments:    void
  16. //    Return Value:    void
  17. //    Remarks/Portability/Dependencies/Restrictions:
  18. //    Revision History:
  19. //        02-18-94    created since TurboVision seemingly won't
  20. //                call the destrutor of this class when leaving
  21. //                the application.
  22.  
  23. #ifndef RELEASE
  24.     trace("Entering TURLView::shutDown.");
  25. #endif // RELEASE
  26.  
  27.     //    Close the temporary file.
  28.     if(fsp_temp != NULL)    {
  29. #ifndef RELEASE
  30.         trace("Closing temporary file.");
  31. #endif // RELEASE
  32.         fsp_temp->close();
  33.         delete(fsp_temp);
  34.     }
  35.  
  36.     //    Delete the temporary file name and the temporary file.
  37.     if(TTNp_temp != NULL)    {
  38. #ifndef RELEASE
  39.         trace("Removing temporary name, possibly file.");
  40. #endif // RELEASE
  41.         delete(TTNp_temp);
  42.         TTNp_temp = NULL;
  43.     }
  44.  
  45.     //    Call the base shutdown.
  46. #ifndef RELEASE
  47.     trace("Calling TScroller::shutDown().");
  48. #endif // RELEASE
  49.     TScroller::shutDown();
  50. }