Skip to content

Commit 03da6ee

Browse files
Merge pull request #4 from haz/main
Reverting memleak fix.
2 parents 9422522 + 934dfa3 commit 03da6ee

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/simulator.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
#include "deadend.h"
99

1010
Simulator::Simulator(shared_ptr<pr2_search::PR2Search> eng) : engine(eng) {
11-
if (current_state)
12-
delete current_state;
1311
current_state = PR2.proxy->generate_new_init();
1412
}
1513

1614
void Simulator::setup_simulation(PR2State * init) {
17-
if (current_state)
18-
delete current_state;
1915
if (init)
2016
current_state = new PR2State(*init);
2117
else

0 commit comments

Comments
 (0)