From e9f94fef250d1aef20e6803d79c400ed1a618dcb Mon Sep 17 00:00:00 2001 From: Anders Bakken Date: Wed, 2 Sep 2009 13:08:04 -0700 Subject: Make sure to set mem to 0 in unlockSurface Reviewed-by: Donald Carr --- src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp index 2e56b9a..e74bd89 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.cpp @@ -128,6 +128,7 @@ void QDirectFBPaintDevice::unlockSurface() if (surface) { surface->Unlock(surface); lockFlgs = static_cast(0); + mem = 0; } } } -- cgit v0.12