CLOUD: Fix Requests destructors

I forgot to delete callbacks!
This commit is contained in:
Alexander Tkachev 2016-05-28 01:18:37 +06:00
parent 827c7e43da
commit b74d7a6861
5 changed files with 14 additions and 6 deletions

View file

@ -34,7 +34,7 @@ namespace Networking {
CurlJsonRequest::CurlJsonRequest(JsonCallback cb, Common::String url):
CurlRequest(0, url), _jsonCallback(cb), _contentsStream(DisposeAfterUse::YES) {}
CurlJsonRequest::~CurlJsonRequest() {}
CurlJsonRequest::~CurlJsonRequest() { delete _jsonCallback; }
char *CurlJsonRequest::getPreparedContents() {
//write one more byte in the end