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)
|
void ConfigLoaderPrivate::parse(ConfigLoader *loader, QIODevice *xml)
|
||||||
{
|
{
|
||||||
|
clearData();
|
||||||
|
loader->clearItems();
|
||||||
QXmlInputSource source(xml);
|
QXmlInputSource source(xml);
|
||||||
QXmlSimpleReader reader;
|
QXmlSimpleReader reader;
|
||||||
ConfigLoaderHandler handler(loader, this);
|
ConfigLoaderHandler handler(loader, this);
|
||||||
|
@ -34,6 +34,11 @@ class ConfigLoaderPrivate
|
|||||||
}
|
}
|
||||||
|
|
||||||
~ConfigLoaderPrivate()
|
~ConfigLoaderPrivate()
|
||||||
|
{
|
||||||
|
clearData();
|
||||||
|
}
|
||||||
|
|
||||||
|
void clearData()
|
||||||
{
|
{
|
||||||
qDeleteAll(bools);
|
qDeleteAll(bools);
|
||||||
qDeleteAll(strings);
|
qDeleteAll(strings);
|
||||||
|
Loading…
Reference in New Issue
Block a user