Fix segmentation fault in the regression tests

This commit is contained in:
Felipe Zimmerle
2015-08-25 00:24:28 -03:00
parent a168502717
commit fd8578351d
2 changed files with 28 additions and 21 deletions

View File

@@ -88,9 +88,13 @@ Rules::~Rules() {
}
}
/** Cleanup audit log */
audit_log->refCountDecreaseAndCheck();
if (audit_log) {
audit_log->refCountDecreaseAndCheck();
}
/** Cleanup debug log */
debugLog->refCountDecreaseAndCheck();
if (debugLog) {
debugLog->refCountDecreaseAndCheck();
}
}