On Sun, May 21, 2006 at 12:30:40PM +0200, Abdelrazak Younes wrote: > Georg Baum a écrit : > >Unless QFileDialog does some magic in addToolButton() we have a memory > >leak here. Can some Qt expert please tell whether this patch is OK? > > I am not sure of that but I think I have read somewhere that it is safe > to use pointers on Qt objects this way. If that is not the case then I > guess there is a _lot_ of memory leaks everywhere in qt3 and qt4. But > your code seems safe in any case.
It is _not_ safe. Andre'