GLView::end needs to release self.

This commit is contained in:
James Chen 2014-03-12 21:45:57 +08:00
parent cc8738ee94
commit 77a8476c80
1 changed files with 2 additions and 1 deletions

View File

@ -386,7 +386,8 @@ void GLView::end()
glfwSetWindowShouldClose(_mainWindow,1);
_mainWindow = nullptr;
}
// Release self. Otherwise, GLView could not be freed.
release();
}
void GLView::swapBuffers()