The assert can fail if we have the data recovery disabled

This commit is contained in:
David Capello 2019-06-07 13:18:23 -03:00
parent c7d1e4a472
commit 8201d62124

View File

@ -186,9 +186,10 @@ public:
void deleteDataRecovery() {
#ifdef ENABLE_DATA_RECOVERY
ASSERT(m_recovery);
delete m_recovery;
m_recovery = nullptr;
if (m_recovery) {
delete m_recovery;
m_recovery = nullptr;
}
#endif
}