Skip to content

Commit eebc6d4

Browse files
committed
在思考了一天多后决定加回来,目前该类在程序中并没有复用。故此就是可以理解为GetBytes只调用一次,后续再说后续的话。
1 parent 9ba338f commit eebc6d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Magick.NET/Helpers/ByteArrayWrapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public byte[] GetBytes()
3030
{
3131
var result = new byte[_length];
3232
Array.Copy(_bytes, result, _length);
33+
_pool.Return(_bytes);
3334
return result;
3435
}
3536

0 commit comments

Comments
 (0)