mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
613c6b9e17
commit
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:
|
||||
|
Loading…
Reference in New Issue
Block a user