koffice/krita/core/tiles

Bart Coppens kde at bartcoppens.be
Mon Feb 27 17:06:48 CET 2006


SVN commit 514214 by coppens:

Fix crash in the tiles code (I decided too soon if something was in a pool or not), could everybody who experienced random tiles crashes please test again and report any more crashes?

CCMAIL:kimageshop at kde.org

 M  +4 -2      kis_tilemanager.cc  


--- trunk/koffice/krita/core/tiles/kis_tilemanager.cc #514213:514214
@@ -424,8 +424,10 @@
         if (m_poolPixelSizes[i] == pixelSize) {
             bool b = data >= m_pools[i]
                      && data < m_pools[i] + pixelSize * m_tileSize * m_tilesPerPool;
-            m_poolMutex->unlock();
-            return b;
+            if (b) {
+                m_poolMutex->unlock();
+                return true;
+            }
         }
     }
     m_poolMutex->unlock();


More information about the kimageshop mailing list