summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/request_queue.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-24 09:19:27 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-24 09:19:27 +0000
commita2ae51e943d855748962f4738dd9f87b96ad00b0 (patch)
treec847b6c22b05105f65f3a981e1e90302d9b95957 /protocols/Steam/src/request_queue.cpp
parent799f5807fe6c3797787768b385e7e7c22a26a6c2 (diff)
Steam: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@14358 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/request_queue.cpp')
-rw-r--r--protocols/Steam/src/request_queue.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Steam/src/request_queue.cpp b/protocols/Steam/src/request_queue.cpp
index 4e343a5118..c419ffbd26 100644
--- a/protocols/Steam/src/request_queue.cpp
+++ b/protocols/Steam/src/request_queue.cpp
@@ -78,16 +78,15 @@ void RequestQueue::Execute(RequestQueueItem *item)
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)response);
if (item->finallyCallback != NULL)
item->finallyCallback(item->arg);
- requests.remove(item);
delete item;
}
unsigned int RequestQueue::AsyncSendThread(void *owner, void *arg)
{
- RequestQueue *that = (RequestQueue*)owner;
+ RequestQueue *queue = (RequestQueue*)owner;
RequestQueueItem *item = (RequestQueueItem*)arg;
- that->Execute(item);
+ queue->Execute(item);
return 0;
}