summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-04-07 05:52:12 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-04-07 05:52:12 (GMT)
commitfd4a62bfc18006b3c29918a65b60d9bacf22c9c0 (patch)
tree1abb22ff8060d0876ee3a368a39b78b70aed22f7 /src/plugins/gfxdrivers/directfb/qdirectfbsurface.cpp
parent3923604b4390e613000f4c2b00db9e0a954f92ed (diff)
downloadQt-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.cpp2
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 &region, int dx, int dy)
dfbSurface->SetBlittingFlags(dfbSurface, DSBLIT_NOFX);
dfbSurface->BatchBlit(dfbSurface, dfbSurface,
dfbRects.data(), dfbPoints.data(), n);
-
+ dfbSurface->ReleaseSource(dfbSurface);
return true;
}