wxPGPropArgCls does not initialize m_flags in the default constructor
|Reported by:||alexbranescu||Owned by:|
In C++, member POD types are not automatically zero-initialized if not specified in the constructor initialization list. This can lead to a crash (and does in certain cases) with wxPGPropArgCls, because the destructor calls delete on potentially uninitialized member if m_flags has a specific value:
if ( m_flags & OwnsWxString )
Since m_flags has an indeterminate value the if check may pass even in the default constructed object case.