I use Qt 4.8 rc on os x lion. I just create an empty gui app base on QMainWindow. There is only one line code that i typed in MainWindow constructor: setAtribute(Qt::WA_DeleteOnClose); and because of this line program crashes on exit. Here is Application Output says this:
Qt Code:
  1. MainWindow(2770,0x7fff78a08960) malloc: *** error for object 0x7fff5fbffbe8: pointer being freed was not allocated
  2. *** set a breakpoint in malloc_error_break to debug
  3. The program has unexpectedly finished.
  4. /Users/fyodor/Documents/Programlama/Qt/WorkSpace/MainWindow/MainWindow.app/Contents/MacOS/MainWindow exited with code 0
To copy to clipboard, switch view to plain text mode 
Is this a bug on OS X and what benefits do we get when we use it ?