RayeRen opened this issue 8 years ago · 0 comments
@Maryeon
class LAYOUTS{ protected: vector<BaseShape*>list; };
改为
class LAYOUTS{ protected: vector< shared_ptr<BaseShape> >list; };
使用智能指针防止内存泄漏