diff options
Diffstat (limited to 'src/platforms/windows/windowsHandler.cpp')
-rw-r--r-- | src/platforms/windows/windowsHandler.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index 404d3cbc..1a37c839 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -49,17 +49,13 @@ windowsHandler::windowsHandler() m_socketFactory = vmime::create <windowsSocketFactory>(); #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - m_fileSysFactory = new windowsFileSystemFactory(); + m_fileSysFactory = vmime::create <windowsFileSystemFactory>(); #endif } windowsHandler::~windowsHandler() { -#if VMIME_HAVE_FILESYSTEM_FEATURES - delete (m_fileSysFactory); -#endif - WSACleanup(); } @@ -240,9 +236,9 @@ unsigned int windowsHandler::getProcessId() const #if VMIME_HAVE_MESSAGING_FEATURES -ref <vmime::net::socketFactory> windowsHandler::getSocketFactory() const +ref <vmime::net::socketFactory> windowsHandler::getSocketFactory() { - return m_socketFactory.dynamicCast <vmime::net::socketFactory>(); + return m_socketFactory; } #endif @@ -250,13 +246,13 @@ ref <vmime::net::socketFactory> windowsHandler::getSocketFactory() const #if VMIME_HAVE_FILESYSTEM_FEATURES -vmime::utility::fileSystemFactory* windowsHandler::getFileSystemFactory() const +ref <vmime::utility::fileSystemFactory> windowsHandler::getFileSystemFactory() { - return (m_fileSysFactory); + return m_fileSysFactory; } -vmime::utility::childProcessFactory* windowsHandler::getChildProcessFactory() const +ref <vmime::utility::childProcessFactory> windowsHandler::getChildProcessFactory() { // TODO: Not implemented return (NULL); |