Network::~Network() { clearHandlers(); delete mMessageHandlers; mMessageHandlers = nullptr; mInstance = nullptr; }
void Net::finalize() { if (!client) return; // Wasn't initialized at all if (Net::connections) { logger->error("Tried to shutdown the network subsystem while there " "are network connections left!"); } clearHandlers(); enet_deinitialize(); }
Network::~Network() { clearHandlers(); if (mState != IDLE && mState != NET_ERROR) disconnect(); mInstance = 0; delete[] mInBuffer; delete[] mOutBuffer; SDLNet_Quit(); }
Network::~Network() { clearHandlers(); if (mState != IDLE && mState != NET_ERROR) disconnect(); SDL_DestroyMutex(mMutex); mMutex = nullptr; mInstance = nullptr; delete []mInBuffer; delete []mOutBuffer; SDLNet_Quit(); }
void GeneralHandler::unload() { clearHandlers(); }
Shader::~Shader() { glDeleteProgram(mProgram); clearHandlers(); }