Patch: fix intermittent crash in KHTML Thai Word Break

Koos Vriezen koos.vriezen at xs4all.nl
Tue Mar 1 17:33:54 GMT 2005


On Tue, Mar 01, 2005 at 06:14:27PM +0100, Leo Savernik wrote:
> Am Dienstag, 1. März 2005 17:43 schrieb Pattara Kiatisevi:
> > This is new to me, I thought "delete x" means "free the memory that x
> > is pointing to and set x to 0", hmm.
> 
> No, it only means, free *x. C++ doesn't do "convenience" stuff that 
> potentially hurts performance.

I always though that 'delete x' calls the operator delete of X that will
call the destructor of X, which nicely can clean up what x could have
left behind. Hurts performance badly ..
Aren't you confusing C++ with C?

Koos




More information about the kfm-devel mailing list