From 3c8d15f6f8edbe57533acc5ddea28dcbb4f805c3 Mon Sep 17 00:00:00 2001 From: WenhaiLin Date: Mon, 15 Jun 2015 17:55:00 +0800 Subject: [PATCH] Fixed NotificationNode might crash program when the program exits. --- cocos/base/CCDirector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 0215b096d1..d938a4872d 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -961,6 +961,7 @@ void Director::reset() stopAnimation(); + CC_SAFE_RELEASE_NULL(_notificationNode); CC_SAFE_RELEASE_NULL(_FPSLabel); CC_SAFE_RELEASE_NULL(_drawnBatchesLabel); CC_SAFE_RELEASE_NULL(_drawnVerticesLabel);