summaryrefslogtreecommitdiffstats
path: root/examples/uml/xmi-read
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-10-12 22:01:19 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-10-13 02:58:05 +0200
commitb505b189ff61ba1d325d95d6ef928aa146bb4c05 (patch)
tree38ee0e2c091982bd457a491c6ee9e4f664c2ac77 /examples/uml/xmi-read
parenta1782d07b9750884cdf995bfd87eef3edebed3bb (diff)
Move QModelingElement and QModelingObject removal to base classes
Change-Id: I48fbd0e1c63e5627137b00a26fcbe7ea82eaa78f Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'examples/uml/xmi-read')
-rw-r--r--examples/uml/xmi-read/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/uml/xmi-read/main.cpp b/examples/uml/xmi-read/main.cpp
index d3dd7d8d..328a2e7b 100644
--- a/examples/uml/xmi-read/main.cpp
+++ b/examples/uml/xmi-read/main.cpp
@@ -75,5 +75,7 @@ int main ()
foreach (QModelingElement *modelingElement, rootElements)
list << modelingElement->asQModelingObject();
writer.writeFile(list, &file2);
+
+ qDeleteAll(rootElements);
}