diff --git a/include/report.cpp b/include/report.cpp index e57440d27..5b85d7e1c 100755 --- a/include/report.cpp +++ b/include/report.cpp @@ -1922,7 +1922,7 @@ void TReport::update_recordset_parent() bool TReport::set_recordset(TRecordset* rs) { - if (_recordset != NULL) + if (_recordset != NULL && _recordset != rs) delete _recordset; _recordset = rs; update_recordset_parent();