r188: *** empty log message ***
[ctsim.git] / src / views.cpp
index d60515bbb8c4c7a359061d9e9d47e5316c43ac9b..8a1facea8f57c2fd58b43274a680c237bdba4a2f 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: views.cpp,v 1.19 2000/09/02 05:10:39 kevin Exp $
+**  $Id: views.cpp,v 1.20 2000/09/02 16:40:36 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -725,6 +725,7 @@ ProjectionFileView::OnReconstruct (wxCommandEvent& event)
              ::wxUsleep(50);
          }
        }
+       delete pDlgReconstruct;
       } else {
        wxProgressDialog dlgProgress (wxString("Reconstruction"), wxString("Reconstruction Progress"), rProj.nView() + 1, m_frame, wxPD_CAN_ABORT);
        for (int i = 0; i < rProj.nView(); i++) {
@@ -736,6 +737,7 @@ ProjectionFileView::OnReconstruct (wxCommandEvent& event)
          }
        }
       }
+      delete pReconstruct;
       pReconDoc->Modify(true);
       pReconDoc->UpdateAllViews(this);
       ostringstream os;