Crash on http://news.google.com

Dirk Mueller mueller at kde.org
Mon Jun 2 13:11:38 BST 2003


On Mon, 02 Jun 2003, Dirk Mueller wrote:

> The standard solution to this problem would be:

I just noticed that QMove is not a QObject. try this patch instead:

--- loader.cpp  5 May 2003 17:26:06 -0000       1.145
+++ loader.cpp  2 Jun 2003 12:10:44 -0000
@@ -805,11 +805,12 @@ void CachedImage::deleteMovie()
     delete m; m = 0;
 }
 
 void CachedImage::clear()
 {
-    delete m;   m = 0;
+    if ( m ) 
+        QTimer::singleShot(0, this, SLOT( deleteMovie()));
     delete p;   p = 0;
     delete bg;  bg = 0;
     bgColor = qRgba( 0, 0, 0, 0xff );
     delete pixPart; pixPart = 0;

of course this opens a tiny window for new races.. :-(


-- 
Dirk




More information about the kfm-devel mailing list