summaryrefslogtreecommitdiff
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-22 11:20:32 -0700
committerAnders Bakken <anders.bakken@nokia.com>2009-07-22 11:20:32 -0700
commitd79f61b51868712590f423483f4d3b39cb60aa64 (patch)
treea4cef0745918348fa3f3bc8dd7d409ff41cab089 /src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
parenteb6fa7e03a5c91e3da93d0c6203d9bad52dfcbb9 (diff)
downloadqt4-tools-d79f61b51868712590f423483f4d3b39cb60aa64.tar.gz
Fix IDirectFBSurface::ReleaseSource calls
Make sure that these calls are in the right order. Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 94f1aeb267..68f37ff4f8 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -466,7 +466,7 @@ void QDirectFBPaintEngine::drawImage(const QRectF &r, const QImage &image,
d->blit(r, imgSurface, sr);
if (release) {
#if (Q_DIRECTFB_VERSION >= 0x010000)
- imgSurface->ReleaseSource(imgSurface);
+ d->surface->ReleaseSource(d->surface);
#endif
imgSurface->Release(imgSurface);
}