发现有时候真傻·竟然在

CMyLegend* pLayerView =(CMyLegend*) m_wndSplitter1.GetPane(0,0);

后面加了个delete  pLayerView ;不是new出来的指针是不用删除的

相关文章: