Commit b60e1433 authored by Mathieu Stefani's avatar Mathieu Stefani Committed by GitHub

Merge pull request #5 from santanusinha/master

[IMPORTANT] Memory related fixes
parents 41fada1c 15b94f2d
......@@ -70,6 +70,7 @@ const char* encodingString(Encoding encoding);
class Header {
public:
virtual ~Header() {}
virtual const char *name() const = 0;
virtual void parse(const std::string& data);
......
......@@ -58,6 +58,10 @@ struct SyncImpl : public Reactor::Impl {
SyncImpl(Reactor* reactor)
: Reactor::Impl(reactor)
, handlers_()
, shutdown_()
, shutdownFd()
, poller()
{
shutdownFd.bind(poller);
}
......@@ -204,7 +208,10 @@ private:
static constexpr size_t MaxHandlers = (1 << HandlerBits) - 1;
HandlerList() {
HandlerList()
:handlers()
, index_()
{
std::fill(std::begin(handlers), std::end(handlers), nullptr);
}
......
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