diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-29 09:09:01 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-09-29 11:29:26 (GMT) |
commit | b2d756ff77ff4446499292ffbaede38ab5d0e894 (patch) | |
tree | 45345e0dd3c736ee4efa08bf990268cc48b7b1d9 /doc/src/snippets/code/src_script_qscriptable.cpp | |
parent | 7931a2eda156a4250f4d0283c2b6b0d5434bbecd (diff) | |
download | Qt-b2d756ff77ff4446499292ffbaede38ab5d0e894.zip Qt-b2d756ff77ff4446499292ffbaede38ab5d0e894.tar.gz Qt-b2d756ff77ff4446499292ffbaede38ab5d0e894.tar.bz2 |
Fix EGL/GLX surface leak when using texture-from-pixmap
The QScopedPointer changes mean that the pixmap data's reference count
is now decremented after the cleanup hooks are called. The hooks should
also only be called when the pixmap data gets deleted, so we don't
actually have to check the reference count at all.
Reviewed-by: TrustMe
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptable.cpp')
0 files changed, 0 insertions, 0 deletions