Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.0, 5.5.1, 5.6.0 Alpha
-
None
-
Arch Linux
Video driver: xf86-video-nouveau
-
3e9f61f305dc4c988e6f2718df56df80f639734e
Description
In the uncommon case (m_context->hasBrokenIndexBufferObjects() || m_visualizeMode != VisualizeNothing) of mapping a buffer, malloc is called without first freeing the previous malloc.
Attached are the git bisect logs used to track this issue down, a patch to fix this issue, and a testcase to show the memory leak, run it on a system that has Broken Index Buffer Objects and watch the app's memory keep going up.
Regression was introduced with:
qt5 commit: 9347499e78f03710eaf24af3c1e7ac650d0ef81d
qtdeclarative commit: a371bac3fba73f92aaa63a68d8ab1ae81a1d1031
Attachments
For Gerrit Dashboard: QTBUG-48799 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
138203,2 | Scene Graph: Fixed memory leak in QSGBatchRenderer::Renderer::map() | 5.6 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
138225,2 | Scene Graph: Fixed memory leak in QSGBatchRenderer::Renderer::map() | 5.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |