summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Update.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-06 17:08:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-06 17:08:48 +0000
commit069389941b173066e3026713602232e4fba1d45c (patch)
tree7f301e3bc56d458ebed3e45a03b937b8099f954f /plugins/NewsAggregator/Src/Update.cpp
parentf0899cc7909c130426af35ba1ef0689d35a708f7 (diff)
- 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
Diffstat (limited to 'plugins/NewsAggregator/Src/Update.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Update.cpp4
1 files changed, 4 insertions, 0 deletions
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();
}