X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.cpp;h=6f71f01602850e3204409a47649d5328991f84ad;hp=9352b4c8b1ecb2e67584166b846cb9090843d2a3;hb=c6f2bb52c598291d61d31a3eba54b84ebb338580;hpb=3587fb3fb702a765b16048c88b691d4bbd0fe6fc diff --git a/src/views.cpp b/src/views.cpp index 9352b4c..6f71f01 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: views.cpp,v 1.95 2001/02/02 00:46:38 kevin Exp $ +** $Id: views.cpp,v 1.96 2001/02/02 23:04:06 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 @@ -1032,7 +1032,7 @@ ImageFileView::OnClose (bool deleteWindow) SetFrame(NULL); if (deleteWindow) { - m_pFrame->Destroy(); + delete m_pFrame; m_pFrame = NULL; if (GetDocument() && GetDocument()->getBadFileOpen()) ::wxYield(); // wxWindows bug workaround