Skip to content

Commit 22eabe0

Browse files
minggominggo
minggo
authored andcommitted
use CC_SAFE_DELETE_ARRAY instead of CC_SAFE_DELETE (cocos2d#19580)
1 parent 9c0033e commit 22eabe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/platform/desktop/CCGLViewImpl-desktop.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ void GLViewImpl::setIcon(const std::vector<std::string>& filelist) const {
502502
GLFWwindow* window = this->getWindow();
503503
glfwSetWindowIcon(window, iconsCount, images);
504504

505-
CC_SAFE_DELETE(images);
505+
CC_SAFE_DELETE_ARRAY(images);
506506
for (auto& icon: icons) {
507507
CC_SAFE_DELETE(icon);
508508
}

0 commit comments

Comments
 (0)