Skip to content

Commit

Permalink
main: use delete[] for array
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Rusak <[email protected]>
  • Loading branch information
lrusak committed Apr 21, 2023
1 parent ce15b03 commit 6c97d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ void CMyAddon::Stop()
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDeleteBuffers(1, &m_vertexVBO);
m_vertexVBO = 0;
delete m_VertBuf;

delete[] m_VertBuf;
m_VertBuf = nullptr;
#endif
}
Expand Down

0 comments on commit 6c97d66

Please sign in to comment.