Avoids a second initialization of the Audit Log class

This commit is contained in:
Felipe Zimmerle
2017-01-06 11:12:59 -03:00
committed by Felipe Zimmerle
parent 557c29fd46
commit 808fd23358

View File

@@ -29,16 +29,10 @@ Driver::Driver()
: RulesProperties(),
trace_scanning(false),
trace_parsing(false),
lastRule(NULL) {
m_auditLog = new audit_log::AuditLog();
m_auditLog->refCountIncrease();
}
lastRule(NULL) { }
Driver::~Driver() {
if (m_auditLog != NULL) {
m_auditLog->refCountDecreaseAndCheck();
}
delete loc.back();
}