Skip to content

Commit

Permalink
add Dispose method to XWPFDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Sep 17, 2022
1 parent 2791808 commit 8b0ffeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ooxml/XWPF/Usermodel/XWPFDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace NPOI.XWPF.UserModel
* http://www.ecma-international.org/publications/standards/Ecma-376.htm
* at some point in your use.</p>
*/
public class XWPFDocument : POIXMLDocument, Document, IBody
public class XWPFDocument : POIXMLDocument, Document, IBody, IDisposable
{

private CT_Document ctDocument;
Expand Down Expand Up @@ -1679,5 +1679,9 @@ public XWPFDocument GetXWPFDocument()
return this;
}

public void Dispose()
{
this.Close();
}
} // end class
}

0 comments on commit 8b0ffeb

Please sign in to comment.