File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
src/Synercoding.FileFormats.Pdf Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 42
42
run : dotnet test -c Release
43
43
- name : Pack
44
44
if : matrix.os == 'ubuntu-latest'
45
- run : dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageVersion=$GITHUB_RUN_ID -pre src/$PROJECT_NAME/$PROJECT_NAME.*proj
45
+ run : dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageVersion=1.0.0 -pre+$GITHUB_RUN_ID src/$PROJECT_NAME/$PROJECT_NAME.*proj
46
46
- name : Upload Artifact
47
47
if : matrix.os == 'ubuntu-latest'
48
48
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ public void Add(T1 t1, T2 t2)
25
25
_reverse . Add ( t2 , t1 ) ;
26
26
}
27
27
28
+ public void Clear ( )
29
+ {
30
+ _forward . Clear ( ) ;
31
+ _reverse . Clear ( ) ;
32
+ }
33
+
28
34
public IEnumerator < KeyValuePair < T1 , T2 > > GetEnumerator ( )
29
35
{
30
36
return _forward . GetEnumerator ( ) ;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ public void Dispose()
17
17
{
18
18
foreach ( var kv in _images )
19
19
kv . Value . Dispose ( ) ;
20
+
21
+ _images . Clear ( ) ;
20
22
}
21
23
22
24
public PdfName AddImageToResources ( Image image )
Original file line number Diff line number Diff line change 10
10
<Product >Synercoding.FileFormats.Pdf</Product >
11
11
<Title >Synercoding.FileFormats.Pdf</Title >
12
12
<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 >
14
14
</PropertyGroup >
15
15
16
16
</Project >
You can’t perform that action at this time.
0 commit comments