Skip to content

Commit af5c022

Browse files
committed
Fix: deconstructor error for Operator in PW base, it is okay since this commit
1 parent d9d49b9 commit af5c022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hamilt/operator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Operator
1616
{
1717
if(this->hpsi != nullptr) delete this->hpsi;
1818
Operator* last = this->next_op;
19-
if(last != nullptr)
19+
while(last != nullptr)
2020
{
2121
Operator* node_delete = last;
2222
last = last->next_op;

0 commit comments

Comments
 (0)