diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-03-05 14:36:10 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-03-05 14:36:10 +0000 |
commit | 68c31fd58da09d3f4f0b4c7b78a53f83cc5f9ffb (patch) | |
tree | 83be1c5e5654087223abbfbf62e26f4b83ac93f0 /protocols/Steam/src/steam_proto.h | |
parent | ac74cfab81e32d85eb4344a4ca9d2f400b625583 (diff) |
Steam: Fix potential memleaks when proto tries to do request when it became (or is already) offline
git-svn-id: http://svn.miranda-ng.org/main/trunk@12325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.h')
-rw-r--r-- | protocols/Steam/src/steam_proto.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h index 7824578824..705b2e080b 100644 --- a/protocols/Steam/src/steam_proto.h +++ b/protocols/Steam/src/steam_proto.h @@ -69,16 +69,16 @@ struct QueueItem SteamWebApi::HttpRequest *request; void *arg; RESPONSE responseCallback; - RESPONSE responseFailedCallback; + //RESPONSE responseFailedCallback; QueueItem(SteamWebApi::HttpRequest *request) : - request(request), arg(NULL), responseCallback(NULL), responseFailedCallback(NULL) { } + request(request), arg(NULL), responseCallback(NULL)/*, responseFailedCallback(NULL)*/ { } QueueItem(SteamWebApi::HttpRequest *request, RESPONSE response) : - request(request), arg(NULL), responseCallback(response), responseFailedCallback(NULL) { } + request(request), arg(NULL), responseCallback(response)/*, responseFailedCallback(NULL)*/ { } - QueueItem(SteamWebApi::HttpRequest *request, RESPONSE response, RESPONSE responseFailedCallback) : - request(request), arg(NULL), responseCallback(response), responseFailedCallback(responseFailedCallback) { } + //QueueItem(SteamWebApi::HttpRequest *request, RESPONSE response, RESPONSE responseFailedCallback) : + // request(request), arg(NULL), responseCallback(response), responseFailedCallback(responseFailedCallback) { } ~QueueItem() { delete request; responseCallback = NULL; } }; |