This fix proceeds by cleaning the Gecode::Support::DynamicQueue<Gecode::Space *, Gecode::Heap> solutions attribute of the Gecode::Search::Par::Engine<Tracer> class in the destructor. It unstacks the remaining Gecode::Space * items of the queue and explicitly deletes the objects until the queue is empty.
This fix proceeds by cleaning the
Gecode::Support::DynamicQueue<Gecode::Space *, Gecode::Heap> solutions
attribute of theGecode::Search::Par::Engine<Tracer>
class in the destructor. It unstacks the remainingGecode::Space *
items of the queue and explicitly deletes the objects until the queue is empty.This fix uses the same mechanism as of
gecode/search/par/pbs.hpp
https://github.com/Gecode/gecode/blob/b38d85179280490b228665738c526eac31f03d9e/gecode/search/par/pbs.hpp, which deals with the samesolutions
attribute :