Fixed wxHatchBitmapSource reference counting which caused memory leaks
Wraped the brush resource holder with a wxSharedPtr
Fixed a memory leak caused by not properly releasing a local array inside wxD2DPenData::CreateStrokeStyle
Wraped the m_stippleBrush member of wxD2DPenData in a wxSharedPtr smart pointer
Removed unused local iterator
Replaced CComPtr with wxCOMPtr to ensure compiler portability