[Kmymoney-devel] playground/office/kmymoney/kmymoney2/views
Fernando Vilas
fvilas at iname.com
Tue Oct 13 02:25:15 CEST 2009
On Monday 12 October 2009 00:12:16 Alvaro Soliverez wrote:
> SVN commit 1034219 by asoliverez:
>
> Fixed crash on destruction of KHTML_Part under KDE 4.3.2
>
> M +3 -0 khomeview.cpp
>
>
> --- trunk/playground/office/kmymoney/kmymoney2/views/khomeview.cpp
> #1034218:1034219 @@ -115,6 +115,9 @@
> //kDebug() << "Storing font size: " << m_part->zoomFactor();
> KMyMoneyGlobalSettings::self()->writeConfig();
> }
> + //This is to prevent a crash on exit with KDE 4.3.2
> + if(m_part)
> + delete m_part;
> }
>
> void KHomeView::slotLoadView(void)
>
In C++, it is always safe to delete a null pointer, so the check is not
needed. You can just delete the pointer. Anyway, thanks for fixing that crash.
--
Thanks,
Fernando Vilas
fvilas at iname.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20091012/4d48faa4/attachment.sig
More information about the KMyMoney-devel
mailing list