[PATCH] Fix a crash in KSharedConfigPtr
Matthias Kretz
kretz at kde.org
Thu Aug 30 18:52:09 BST 2007
On Thursday 30 August 2007, Alex Merry wrote:
> I'm getting a crash in plasma caused by setting a KSharedConfigPtr to 0.
> It causes KSharedConfigPtr::attach(0) to be called, and then tries to
> dereference p (which is 0).
>
> This patch should fix it, but I'm not certain it's correct. Can someone
> tell me whether it makes sense?
Good catch, your fix is correct. And I think I should document that code a bit
more...
--
________________________________________________________
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: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070830/cc0d06ee/attachment.sig>
More information about the kde-core-devel
mailing list