2 crashes in khtml trunk
Matthias Kretz
kretz at kde.org
Thu Mar 29 13:43:17 BST 2007
On Thursday 29 March 2007 14:07, David Faure wrote:
> 2) crash on closing konqueror:
> #5 0x00002b7d50c9fe89 in QPixmap (this=0x7fff5d57fe50) at
image/qpixmap.cpp:95
> #6 0x00002b7d573dc00e in khtmlImLoad::PixmapTile::discard (this=0xc7e618)
at /d/kde/src/4/kdelibs/khtml/imload/pixmaptile.h:45
Looking at pixmaptile.h I'd say in this case it's easily fixable by following
the comment above: make pixmap a QPixmap* and in discard assign a 0 instead
of QPixmap() (dunno if deleting the pixmap is allowed after QApplication is
deleted, though).
The safer variant for a complicated Factory destructor really is to register
with qAddPostRoutine, then you can be sure that all of Qt's global statics
are still available and you still have a valid QCoreApplication object.
--
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070329/f221e27f/attachment.sig>
More information about the kfm-devel
mailing list