summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-12-16 18:01:22 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-01-04 08:50:21 (GMT)
commitc8ed3a4499adae2c26e66a1e00bffa28cc649b5a (patch)
tree4447e4376e3856a8608c11e0490673a26e64779c /src/plugins
parent6911786e2275b41284b19c88dc9692e78a01a647 (diff)
downloadQt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.zip
Qt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.tar.gz
Qt-c8ed3a4499adae2c26e66a1e00bffa28cc649b5a.tar.bz2
Release surface before getting a new one
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
index 4d35376..4a055ac 100644
--- a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
+++ b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
@@ -100,6 +100,10 @@ void QDirectFbWindowSurface::setGeometry(const QRect &rect)
QWindowSurface::setGeometry(rect);
m_dfbWindow->SetBounds(m_dfbWindow, rect.x(),rect.y(),
rect.width(), rect.height());
+ if (m_dfbSurface) {
+ m_dfbSurface->Release(m_dfbSurface);
+ m_dfbSurface = 0;
+ }
DFBResult result = m_dfbWindow->GetSurface(m_dfbWindow,&m_dfbSurface);
if (result != DFB_OK)
DirectFBError("QDirectFbWindowSurface::setGeometry() failed to retrieve new surface",result);