Fix possible memory leak.
--HG-- branch : feature
This commit is contained in:
parent
24d5aa0f53
commit
e15d4d9c05
|
@ -1258,10 +1258,9 @@ void TMainWindow::ImportFromPattern()
|
||||||
converter.Convert();
|
converter.Convert();
|
||||||
|
|
||||||
VDomDocument::ValidateXML(VPatternConverter::CurrentSchema, mPath);
|
VDomDocument::ValidateXML(VPatternConverter::CurrentSchema, mPath);
|
||||||
VLitePattern *doc = new VLitePattern();
|
QScopedPointer<VLitePattern> doc(new VLitePattern());
|
||||||
doc->setXMLContent(mPath);
|
doc->setXMLContent(mPath);
|
||||||
measurements = doc->ListMeasurements();
|
measurements = doc->ListMeasurements();
|
||||||
delete doc; // close a pattern
|
|
||||||
}
|
}
|
||||||
catch (VException &e)
|
catch (VException &e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user