Code

fix 1243587 and misc fixes
[inkscape.git] / src / dom / work / testdom.cpp
index d3e8d99f3a27bf6e8022d04745741b71a78670c8..bd6cf6bfbf7d80b4d0bcd03cd36a2c8602b9b7a2 100644 (file)
@@ -57,7 +57,7 @@ bool doTest(char *filename)
     input.setStringData(buf);
 
     printf("######## PARSE ######################################\n");
-    Document *doc = parser.parse(input);
+    DocumentPtr doc = parser.parse(input);
 
     if (!doc)
         {
@@ -80,14 +80,11 @@ bool doTest(char *filename)
     printf("Nodes:%d\n", nodeCount);
     for (int i=0; i<nodeCount ; i++)
         {
-        Node *node = list.item(i);
+        NodePtr node = list.item(i);
         serializer.write(node, output);
         }
 
 
-
-
-    delete doc;
     return 1;
 }