a text on optimizing C++

David Leimbach kde-optimize@mail.kde.org
Fri, 24 Jan 2003 19:27:18 -0600


> > > ( new QVBoxLayout( ... ) )->setAutoAdd( true );
> >
> > Looks like a memory leak to me.. . you just constructed something and
> > threw out the pointer
>
> The QVBoxLayout is created as a child of a widget. The widget is
> responsible for deleting the layout. So there's no memory leak.

So somewhere there is a symbol that has that address so it can call delete.