else
{
// ...or remove the attribute
- m_attrs[n].attr->DecRef();
+ // No need to DecRef the attribute itself since this is
+ // done be wxGridCellWithAttr's destructor!
m_attrs.RemoveAt(n);
n--; count--;
}
else
{
// ...or remove the attribute
- m_attrs[n].attr->DecRef();
+ // No need to DecRef the attribute itself since this is
+ // done be wxGridCellWithAttr's destructor!
m_attrs.RemoveAt(n);
n--; count--;
}