I have the following code:

Qt Code:
  1. QList<QObject *> m_devices;
  2. m_devices.append(new Data::Device(info));
To copy to clipboard, switch view to plain text mode 

When do I call the method m_devices.clear() from QList, the allocated memory (new Data::Device(info)) will be free correctly or I need do delete one by one before?