Commit ef550e16 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Checking for unitialized pointer

parent bce20e8a
...@@ -429,7 +429,8 @@ int CVANetServerImpl::Finalize() ...@@ -429,7 +429,8 @@ int CVANetServerImpl::Finalize()
std::cout << "VANetServer: Shutting down" << std::endl; std::cout << "VANetServer: Shutting down" << std::endl;
#endif #endif
m_pConnectionAccepter->Abort(); if( m_pConnectionAccepter )
m_pConnectionAccepter->Abort();
delete m_pConnectionAccepter; delete m_pConnectionAccepter;
m_pConnectionAccepter = NULL; m_pConnectionAccepter = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment