Skip to content

Commit 39a051a

Browse files
authored
use CC_SAFE_DELETE_ARRAY instead of CC_SAFE_DELETE (#19580) (#19727)
1 parent 9c0033e commit 39a051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)