From kde-commits Mon Oct 31 23:49:12 2005 From: Zack Rusin Date: Mon, 31 Oct 2005 23:49:12 +0000 To: kde-commits Subject: Re: KDE/kdelibs/kspell2 Message-Id: <200511010049.14158.zack () kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113086269202754 On Thursday 27 October 2005 12:56, David Faure wrote: > SVN commit 474837 by dfaure: > > Improve API by returning a Ptr to avoid leaks or early deletions. > + static Broker::Ptr openBroker( KSharedConfig *config = 0 ); Oh, it works? Cool. The problem at least used to be that when you were returning Ptr like this it's reference count was going to zero before copy. KShared issue, but nevertheless it was making the whole thing bomb because the Ptr we were getting after openBroker call had its holdee already deleted. I think that one of the initial version of those code was returning a Ptr and then I had to revert :) Zack -- Few women admit their age. Few men act theirs.