summaryrefslogtreecommitdiff
path: root/win/Mainfrm.cpp
diff options
context:
space:
mode:
authorleo2001-02-22 00:47:25 +0000
committerleo2001-02-22 00:47:25 +0000
commit0c942e63ebfc5daf264484f149096c40af3b8359 (patch)
tree589a76a3ff0b7ff36e9f0ecf65eff2303bcbf03e /win/Mainfrm.cpp
parent37a2174b8868d44204a913da64ae86d83f57df39 (diff)
Correctly initialize/destroy MainWnd
git-svn-id: http://svn.leocad.org/trunk@250 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Mainfrm.cpp')
-rw-r--r--win/Mainfrm.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp
index 74254ef..237a670 100644
--- a/win/Mainfrm.cpp
+++ b/win/Mainfrm.cpp
@@ -93,12 +93,10 @@ CMainFrame::CMainFrame()
{
m_pwndFullScrnBar = NULL;
m_bAutoMenuEnable = FALSE;
- m_pMainWnd = new MainWnd ();
}
CMainFrame::~CMainFrame()
{
- delete m_pMainWnd;
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
@@ -205,7 +203,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
messenger->Listen (&mainframe_listener, this);
- m_pMainWnd->SetXID (this);
+ main_window->SetXID (this);
return 0;
}