Hi again and happy new year,
> Except he's not zero-ing the pointer after deleting it which is why the
> if !null check fails to catch the hanging pointer the second time around.
I am! Didn't include this line in my original code, sorry, I deleted it
when deleting more pointless stuff from the destructor. Those are the lines:
delete [] this->p;
this->p = 0;
The issue appeared -- as ist should -- independently checking for a zero
pointer or not. And it appeard setting the pointer to 0 as well. That is
what scared me. Maybe Matt is right?
Regards
Paul.
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator