summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-08-24 15:07:04 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-08-24 17:34:06 (GMT)
commit9c3ff5b598f42e937054e9d7d8aace0d0b647948 (patch)
tree4269aec5e6a02d9f54fcccb58f1d1d2c8e9a11f6 /src/plugins/gfxdrivers
parentb46c17bbe424788040c53fe4f58adfee4644ecfe (diff)
downloadQt-9c3ff5b598f42e937054e9d7d8aace0d0b647948.zip
Qt-9c3ff5b598f42e937054e9d7d8aace0d0b647948.tar.gz
Qt-9c3ff5b598f42e937054e9d7d8aace0d0b647948.tar.bz2
Release surface in QDirectFBPixmapData::invalidate
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
index 697885f..04582d0 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
@@ -403,6 +403,10 @@ QImage * QDirectFBPixmapData::buffer(DFBSurfaceLockFlags lockFlags)
void QDirectFBPixmapData::invalidate()
{
+ if (dfbSurface) {
+ screen->releaseDFBSurface(dfbSurface);
+ dfbSurface = 0;
+ }
setSerialNumber(0);
alpha = false;
d = w = h = 0;