Check for self-assignment in operator=()

This commit is contained in:
Paul Cornett 2019-04-05 09:27:15 -07:00
parent 8791313aff
commit 628e7af79e

View File

@ -359,6 +359,9 @@ wxRegionIterator::wxRegionIterator(const wxRegion& region)
wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
{
if (this == &ri)
return *this;
delete [] m_rects;
m_current = ri.m_current;