[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    koffice/krita/core/tiles
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2006-02-27 16:06:48
Message-ID: 1141056408.415020.6802.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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();
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic