Skip to content

Commit 4eab68f

Browse files
halx99remtori
andcommitted
Remove Director redundant release statements
Co-authored-by: Remtori <[email protected]> Reviewed-by: RH <[email protected]>
1 parent 687b3b0 commit 4eab68f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

core/base/Director.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,6 @@ void Director::reset()
10441044

10451045
stopAnimation();
10461046

1047-
AX_SAFE_RELEASE_NULL(_notificationNode);
10481047
AX_SAFE_RELEASE_NULL(_FPSLabel);
10491048
AX_SAFE_RELEASE_NULL(_drawnBatchesLabel);
10501049
AX_SAFE_RELEASE_NULL(_drawnVerticesLabel);
@@ -1078,13 +1077,6 @@ void Director::cleanupDirector()
10781077
reset();
10791078

10801079
// cleanup graphics before release glView, otherwise, will cause crash on linux
1081-
AX_SAFE_RELEASE(_FPSLabel);
1082-
AX_SAFE_RELEASE(_drawnVerticesLabel);
1083-
AX_SAFE_RELEASE(_drawnBatchesLabel);
1084-
1085-
AX_SAFE_RELEASE(_runningScene);
1086-
AX_SAFE_RELEASE(_notificationNode);
1087-
10881080
AX_SAFE_DELETE(_renderer);
10891081
backend::DriverBase::destroyInstance();
10901082

0 commit comments

Comments
 (0)