forked from organicmaps/organicmaps
[codereview]
This commit is contained in:
parent
4ac389e1f7
commit
cea8e3a8f4
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue