FreeSolutionNodes() crash
Neo7k opened this issue · 1 comments
Hi there!
My program crashes when I am calling FreeSolutionNodes() without any preparation (on clear algorithm object). I noticed this function doesn't check m_Start for existence. Also it was not initialized in constructors, so the value is unpredictable. I added initialization with zero pointer and
if( !m_Start )
return;
lines in function body. Now that works. Can you check if this is good solution, and if it is so, place it in code?
Thank you.
Yes you're right. I'll make this change some time when I have time to test
it. Or you can submit a pull request.
On 16 November 2014 08:50, Ilya notifications@github.com wrote:
Hi there!
My program crashes when I am calling FreeSolutionNodes() without any
preparation (on clear algorithm object). I noticed this function doesn't
check m_Start for existence. Also it was not initialized in constructors,
so the value is unpredictable. I added initialization with zero pointer andif( !m_Start )
return;lines in function body. Now that works. Can you check if this is good
solution, and if it is so, place it in code?Thank you.
—
Reply to this email directly or view it on GitHub
#8.