ricardodovalle
14th March 2014, 21:16
I have the following code:
QList<QObject *> m_devices;
m_devices.append(new Data::Device(info));
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?
QList<QObject *> m_devices;
m_devices.append(new Data::Device(info));
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?