Commit 62323ae4 authored by octal's avatar octal

Client now properly cleans memory

parent 10181357
......@@ -316,6 +316,7 @@ public:
};
Client();
~Client();
static Options options();
void init(const Options& options);
......
......@@ -718,6 +718,18 @@ Client::Client()
{
}
Client::~Client() {
for (auto& queues: requestsQueues) {
auto& q = queues.second;
for (;;) {
Connection::RequestData* d;
if (!q.dequeue(d)) break;
delete d;
}
}
}
Client::Options
Client::options() {
return Client::Options();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment