Skip to content

Commit 40f186c

Browse files
committed
Add null check before deleting tableModelForBenchmarking_ in ExportDsvTest.
1 parent 12ecea8 commit 40f186c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ExportDsvTest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,8 @@ void ExportDsvTest::benchmark()
241241
}
242242
}
243243

244-
void ExportDsvTest::cleanupTestCase() { delete tableModelForBenchmarking_; }
244+
void ExportDsvTest::cleanupTestCase()
245+
{
246+
if (tableModelForBenchmarking_ != nullptr)
247+
delete tableModelForBenchmarking_;
248+
}

0 commit comments

Comments
 (0)