[codereview]

This commit is contained in:
Dmitry Kunin 2014-01-13 13:36:55 +03:00 committed by Alex Zolotarev
parent 4ac389e1f7
commit cea8e3a8f4

View file

@ -6,6 +6,7 @@
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, m_surface(NULL)
{
resize(600, 400);
DrapeSurface * surface = new DrapeSurface();
@ -15,9 +16,11 @@ MainWindow::MainWindow(QWidget *parent)
MainWindow::~MainWindow()
{
ASSERT(m_surface == NULL, ());
}
void MainWindow::closeEvent(QCloseEvent * closeEvent)
{
delete m_surface;
m_surface = NULL;
}