/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
ACLStringData::~ACLStringData()
{
- if (values)
+ if (values) {
values->destroy(xRefFree);
+ delete values;
+ }
}
static int
void
ACLStringData::parse()
{
- char *t;
+ if (!values)
+ values = new Splay<char *>();
+ char *t;
while ((t = strtokFile()))
values->insert(xstrdup(t), splaystrcmp);
}