diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 05:52:12 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-04-07 05:52:12 (GMT) |
commit | fd4a62bfc18006b3c29918a65b60d9bacf22c9c0 (patch) | |
tree | 1abb22ff8060d0876ee3a368a39b78b70aed22f7 /src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp | |
parent | 3923604b4390e613000f4c2b00db9e0a954f92ed (diff) | |
download | Qt-fd4a62bfc18006b3c29918a65b60d9bacf22c9c0.zip Qt-fd4a62bfc18006b3c29918a65b60d9bacf22c9c0.tar.gz Qt-fd4a62bfc18006b3c29918a65b60d9bacf22c9c0.tar.bz2 |
Call ReleaseSource where appropriate
DirectFB caches the last source surface in the target surface after a
Blit. This can cause a surface to be kept around longer than desired
since the caching increases the ref-count. Unless it's likely that the
blit will happen again soon we Release the source.
Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp index 15c2f7c..592ad47 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp @@ -262,7 +262,7 @@ bool QDirectFBSurface::scroll(const QRegion ®ion, int dx, int dy) dfbSurface->SetBlittingFlags(dfbSurface, DSBLIT_NOFX); dfbSurface->BatchBlit(dfbSurface, dfbSurface, dfbRects.data(), dfbPoints.data(), n); - + dfbSurface->ReleaseSource(dfbSurface); return true; } |