diff --git a/ooxml/XWPF/Usermodel/XWPFDocument.cs b/ooxml/XWPF/Usermodel/XWPFDocument.cs index 97a678f08..c266f358e 100644 --- a/ooxml/XWPF/Usermodel/XWPFDocument.cs +++ b/ooxml/XWPF/Usermodel/XWPFDocument.cs @@ -40,7 +40,7 @@ namespace NPOI.XWPF.UserModel * http://www.ecma-international.org/publications/standards/Ecma-376.htm * at some point in your use.

*/ - public class XWPFDocument : POIXMLDocument, Document, IBody + public class XWPFDocument : POIXMLDocument, Document, IBody, IDisposable { private CT_Document ctDocument; @@ -1679,5 +1679,9 @@ public XWPFDocument GetXWPFDocument() return this; } + public void Dispose() + { + this.Close(); + } } // end class } \ No newline at end of file