- if (m_Cell)
- {
- delete m_Cell;
- // notice that it's important to set m_Cell to NULL here before calling
- // Parse() below, even if it will be overwritten by its return value:
- // without this we may crash if it's used from inside Parse()
- m_Cell = NULL;
- }
+
+ // notice that it's important to set m_Cell to NULL here before calling
+ // Parse() below, even if it will be overwritten by its return value as
+ // without this we may crash if it's used from inside Parse(), so use
+ // wxDELETE() and not just delete here
+ wxDELETE(m_Cell);
+