Commit ed365590 by Ryan Dahl Committed by Orlando Vazquez

Call EventEmitter constructor

parent e1c1ac6d
......@@ -91,7 +91,7 @@ public:
}
protected:
Sqlite3Db() : db_(NULL) { }
Sqlite3Db() : EventEmitter(), db_(NULL) { }
~Sqlite3Db() {
assert(db_ == NULL);
......@@ -439,7 +439,7 @@ protected:
}
protected:
Statement(sqlite3_stmt* stmt) : stmt_(stmt) {}
Statement(sqlite3_stmt* stmt) : EventEmitter(), stmt_(stmt) {}
~Statement() { if (stmt_) { sqlite3_finalize(stmt_); } }
sqlite3_stmt* stmt_;
......
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