From 069389941b173066e3026713602232e4fba1d45c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 6 Nov 2014 17:08:48 +0000 Subject: - common message archiving code extracted to a separate function; - manual memory allocation code removed; git-svn-id: http://svn.miranda-ng.org/main/trunk@10916 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Update.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/NewsAggregator/Src/Update.cpp') diff --git a/plugins/NewsAggregator/Src/Update.cpp b/plugins/NewsAggregator/Src/Update.cpp index ec394d5fc8..36bf7d281f 100644 --- a/plugins/NewsAggregator/Src/Update.cpp +++ b/plugins/NewsAggregator/Src/Update.cpp @@ -122,6 +122,8 @@ void UpdateThreadProc(void *AvatarCheck) ThreadRunning = TRUE; // prevent 2 instance of this thread running ReleaseMutex(hUpdateMutex); + CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); + // update news by getting the first station from the queue until the queue is empty while (UpdateListHead != NULL && !Miranda_Terminated()) { if ((BOOL)AvatarCheck) @@ -132,4 +134,6 @@ void UpdateThreadProc(void *AvatarCheck) // exit the update thread ThreadRunning = FALSE; + + CoUninitialize(); } -- cgit v1.2.3