File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
src/Synercoding.FileFormats.Pdf Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ public void Add(T1 t1, T2 t2)
2525 _reverse . Add ( t2 , t1 ) ;
2626 }
2727
28+ public void Clear ( )
29+ {
30+ _forward . Clear ( ) ;
31+ _reverse . Clear ( ) ;
32+ }
33+
2834 public IEnumerator < KeyValuePair < T1 , T2 > > GetEnumerator ( )
2935 {
3036 return _forward . GetEnumerator ( ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ public void Dispose()
1717 {
1818 foreach ( var kv in _images )
1919 kv . Value . Dispose ( ) ;
20+
21+ _images . Clear ( ) ;
2022 }
2123
2224 public PdfName AddImageToResources ( Image image )
Original file line number Diff line number Diff line change 1010 <Product >Synercoding.FileFormats.Pdf</Product >
1111 <Title >Synercoding.FileFormats.Pdf</Title >
1212 <Description >Contains classes which makes it easy to quickly create a pdf file.</Description >
13- <PackageReleaseNotes >Added support for the drawing of shapes .</PackageReleaseNotes >
13+ <PackageReleaseNotes >Fixed a memory buildup bug by clearing the dictionary that contained the image references on dispose .</PackageReleaseNotes >
1414 </PropertyGroup >
1515
1616</Project >
You can’t perform that action at this time.
0 commit comments