Fixed runtime error on Linux when removing canvases

This commit is contained in:
Enrico Turri 2018-06-06 14:33:04 +02:00
parent 8192580b5f
commit 66b4620d9b

View File

@ -1871,7 +1871,6 @@ void GLCanvas3D::unbind_event_handlers()
{
if (m_canvas != nullptr)
{
m_canvas->GetEventHandler()->ProcessPendingEvents();
m_canvas->Unbind(wxEVT_SIZE, &GLCanvas3D::on_size, this);
m_canvas->Unbind(wxEVT_IDLE, &GLCanvas3D::on_idle, this);
m_canvas->Unbind(wxEVT_CHAR, &GLCanvas3D::on_char, this);