зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1420677 - Make AddrInfo.mAddresses an AutoCleanLinkedList r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D22960 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
613c6b9e17
Коммит
7be123d24c
|
@ -330,10 +330,6 @@ AddrInfo::AddrInfo(const AddrInfo *src) {
|
|||
}
|
||||
|
||||
AddrInfo::~AddrInfo() {
|
||||
NetAddrElement *addrElement;
|
||||
while ((addrElement = mAddresses.popLast())) {
|
||||
delete addrElement;
|
||||
}
|
||||
}
|
||||
|
||||
void AddrInfo::AddAddress(NetAddrElement *address) {
|
||||
|
|
|
@ -149,7 +149,7 @@ class AddrInfo {
|
|||
uint32_t ttl;
|
||||
static const uint32_t NO_TTL_DATA = (uint32_t)-1;
|
||||
|
||||
LinkedList<NetAddrElement> mAddresses;
|
||||
AutoCleanLinkedList<NetAddrElement> mAddresses;
|
||||
unsigned int IsTRR() { return mFromTRR; }
|
||||
|
||||
private:
|
||||
|
|
Загрузка…
Ссылка в новой задаче