Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cocos/renderer/CCQuadCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ void QuadCommand::reIndex(int indicesCount)

CCLOG("cocos2d: QuadCommand: resizing index size from [%d] to [%d]", __indexCapacity, indicesCount);

_ownedIndices.push_back(__indices);
//bugfix memory leak problem of __indices
__indices = new (std::nothrow) uint16_t[indicesCount];
_ownedIndices.push_back(__indices);
__indexCapacity = indicesCount;
}

Expand Down