Skip to content

bugfix: memory leak#20720

Closed
niu2x wants to merge 2 commits intococos2d:v4from
niu2x:v4
Closed

bugfix: memory leak#20720
niu2x wants to merge 2 commits intococos2d:v4from
niu2x:v4

Conversation

@niu2x
Copy link
Copy Markdown
Contributor

@niu2x niu2x commented Jan 22, 2022

i think CommandBufferGL::setVertexBuffer and CommandBufferGL::setIndexBuffer should do same things.

  1. check weather new value is different from old value.
  2. release old value, retain new value.

there's memory leak in CommandBufferGL::setVertexBuffer if not release old value

we should release old vertex buffer.
@niu2x
Copy link
Copy Markdown
Contributor Author

niu2x commented Jan 22, 2022

checks fail due to: /usr/bin/ld: cannot find -lXxf86vm.
it's not my fault...

Comment thread cocos/renderer/backend/opengl/CommandBufferGL.cpp
@namka279
Copy link
Copy Markdown

#20720

@niu2x niu2x closed this by deleting the head repository Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants