< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I don’t see the problem – this
function returns a copy of the list, the original/source should be left
untouched. Scott From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Matthias Moetje - TERASENS
GmbH Hi, I'm currently facing another heap corruption problem. I
think this is caused by the way the
RegistrationPersistenceManager::getContacts is implemented: typedef std::list<ContactRecord>
ContactRecordList; virtual ContactRecordList getContacts(const Uri& aor) = 0; When
this function is used like: ContactRecordList
mContacts = pStore->getContacts(aor); then
the contents of the returned list get assigned to To
proof this is skipped the delete in the debugger and How
can we solve this problem? (or am I missing something?) What
about making getContacts return shared_ptr<ContactRecordList>? Best
regards, Matthias
Moetje
|