On Thursday 26 July 2012 07:59:35 Carlos Ernesto Alies Fuentes wrote:
> {
>     FooPrivate* ret = d_func()->value( foo, 0 );
> ///delete is called without validating the pointer
>     delete ret;

That part is OK. Delete NULL is valid C++ (and does nothing).

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to