XWPF: dispose xml cursor when iteration over it is done

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1035615 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maxim Valyanskiy 2010-11-16 12:45:39 +00:00
parent e8bbd4c957
commit 88e8b056fc
2 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
tables.add(t);
}
}
cursor.dispose();
// Sort out headers and footers
if (doc.getDocument().getBody().getSectPr() != null)

View File

@ -140,6 +140,7 @@ public class XWPFParagraph implements IBodyElement{
footnoteText.append("]");
}
}
c.dispose();
}
}
}