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:
parent
e8bbd4c957
commit
88e8b056fc
@ -155,6 +155,7 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
|||||||
tables.add(t);
|
tables.add(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cursor.dispose();
|
||||||
|
|
||||||
// Sort out headers and footers
|
// Sort out headers and footers
|
||||||
if (doc.getDocument().getBody().getSectPr() != null)
|
if (doc.getDocument().getBody().getSectPr() != null)
|
||||||
|
@ -140,6 +140,7 @@ public class XWPFParagraph implements IBodyElement{
|
|||||||
footnoteText.append("]");
|
footnoteText.append("]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
c.dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user