source/gproxy.cpp
/**
 * Cleanup function before exiting. (Deleting all pointers)
 */
Cleanup function before exiting. (Deleting all pointers)
Cleanup function before exiting . ( Deleting all pointers )
void CGProxy::cleanup ()
{
#ifdef WIN32
    CONSOLE_Print(ColoredMessage("[GPROXY] shutting down winsock", ColoredMessage::GPROXY));
    WSACleanup();
#endif
    CONSOLE_Print(ColoredMessage("[GPROXY] shutting down", ColoredMessage::GPROXY));
    if (logFilePtr->isOpen())
    {
        logFilePtr->close();
    }
}
void CGProxy :: cleanup ( ) { #ifdef WIN32 CONSOLE_Print ( ColoredMessage ( " " , ColoredMessage :: GPROXY ) ) ; WSACleanup ( ) ; #endif CONSOLE_Print ( ColoredMessage ( " " , ColoredMessage :: GPROXY ) ) ; if ( logFilePtr -> isOpen ( ) ) { logFilePtr -> close ( ) ; } }
Cleanup function before exiting.
Cleanup function before exiting .
//delete logFilePtr;
 // delete mainGUIPtr;
 // delete gproxyPtr;
