Use Singleton to consider memory release

xiaoxiao2021-03-06  19

Singleton, Singleton, did not take into account the release of memory

Solution:

1. Add a member function destroyInstance () to release the memory, need to call DESTROYINSTANCE () throughout the project.

2, ME said with intelligent pointers

转载请注明原文地址:https://www.9cbs.com/read-42131.html

New Post(0)