Hi All!
Can't think clearly today. So, just to be assured, has decided to ask:
I have QList created somewhere in program:
QList<ExFOLDER *> mapi_folders;
//....
ExFOLDER * folder = new ExFOLDER(CRM_ID,oid);
//...
mapi_folders.append(folder);
QList<ExFOLDER *> mapi_folders;
//....
ExFOLDER * folder = new ExFOLDER(CRM_ID,oid);
//...
mapi_folders.append(folder);
To copy to clipboard, switch view to plain text mode
after some procedures:
while(mapi_folders.count() > 0)
{
ExFOLDER * folder = mapi_folders.takeFirst();
//...
delete folder;
}
while(mapi_folders.count() > 0)
{
ExFOLDER * folder = mapi_folders.takeFirst();
//...
delete folder;
}
To copy to clipboard, switch view to plain text mode
Do I have memory leaks in this code sample?
Bookmarks