Hi,
I have a class that has a member of type
QValueList<AClassOfMine*> list
QValueList<AClassOfMine*> list
To copy to clipboard, switch view to plain text mode
and a function
void addClass(AClassOfMine value)
void addClass(AClassOfMine value)
To copy to clipboard, switch view to plain text mode
This function do only the two following lines of code
AClassOfMine* myClass = new AClassOfMine(value);
list.append(myClass);
AClassOfMine* myClass = new AClassOfMine(value);
list.append(myClass);
To copy to clipboard, switch view to plain text mode
How can I remove and free all elements in my list ?
For the moment I just do
list.clear()
list.clear()
To copy to clipboard, switch view to plain text mode
but I expect some memory leaks to soon come.
So, how can I solve my problem ?
Thanks in advance
Bookmarks