diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumn.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumn.cs index e75111a..c713895 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumn.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Columns/XLColumn.cs @@ -448,6 +448,10 @@ Width = colMaxWidth; + foreach (IDisposable font in fontCache.Values) + { + font.Dispose(); + } return this; } diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Rows/XLRow.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Rows/XLRow.cs index f9772e6..c431481 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Rows/XLRow.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Rows/XLRow.cs @@ -345,6 +345,11 @@ rowMaxHeight = Worksheet.RowHeight; Height = rowMaxHeight; + + foreach (IDisposable font in fontCache.Values) + { + font.Dispose(); + } return this; }