summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglshaderprogram.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-03-10 11:00:14 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-03-10 21:14:20 +0100
commitb615c477f6472f0e3935aea05c099966c1d3ef47 (patch)
treede4fcad13d3def306b9ef9da67115ee51ff942f7 /src/opengl/qopenglshaderprogram.cpp
parent7a1cd692e0b36acfc005332b50d7ef3e11b94e71 (diff)
Don't leak memory when tst_QOpenGL::fboTextureOwnership() fails
Hold 'fbo' in a (const) unique_ptr instead of a raw pointer, so it is deleted even if a following QVERIFY/QCOMPARE fails. This shows that the leak (cf. QTBUG-134557) is not due to the test itself. Amends dcbb16a45212d263496df1e5875da6205e4f5f53. Pick-to: 6.9 6.8 6.5 5.15 Task-number: QTBUG-134557 Change-Id: I2f854d5ff036b7ca5e51d2e9ecb1d04bf7a39a61 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/opengl/qopenglshaderprogram.cpp')
0 files changed, 0 insertions, 0 deletions