singleton注意

如果singleton里面的构造函数里面对资源进行了初始化,那么程序退出时,需要一个release进行资源释放,并且设置instance = null;

原文地址:https://www.cnblogs.com/Empenguin/p/3345570.html