Skip to content

Commit 95fd419

Browse files
Maxbaldurk
authored andcommitted
Fix memory leak during vertex picking in mesh viewer
Deallocate temporary memory for vertex indices, referenced by raw pointer
1 parent 1a3a79d commit 95fd419

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renderdoc/driver/gl/gl_debug.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,8 @@ uint32_t GLReplay::PickVertex(uint32_t eventId, int32_t width, int32_t height,
27942794

27952795
drv.glBindBuffer(eGL_SHADER_STORAGE_BUFFER, DebugData.pickIBBuf);
27962796
drv.glBufferSubData(eGL_SHADER_STORAGE_BUFFER, 0, numIndices * sizeof(uint32_t), outidxs.data());
2797+
2798+
delete[] idxs;
27972799
}
27982800

27992801
// unpack and linearise the data

0 commit comments

Comments
 (0)