clear our data when we parse
This commit is contained in:
parent
4cb892dd04
commit
9be56f7724
@ -66,6 +66,8 @@ private:
|
||||
|
||||
void ConfigLoaderPrivate::parse(ConfigLoader *loader, QIODevice *xml)
|
||||
{
|
||||
clearData();
|
||||
loader->clearItems();
|
||||
QXmlInputSource source(xml);
|
||||
QXmlSimpleReader reader;
|
||||
ConfigLoaderHandler handler(loader, this);
|
||||
|
@ -34,6 +34,11 @@ class ConfigLoaderPrivate
|
||||
}
|
||||
|
||||
~ConfigLoaderPrivate()
|
||||
{
|
||||
clearData();
|
||||
}
|
||||
|
||||
void clearData()
|
||||
{
|
||||
qDeleteAll(bools);
|
||||
qDeleteAll(strings);
|
||||
|
Loading…
Reference in New Issue
Block a user