Skip to content

Commit

Permalink
fix saving loaded bitmap with wrong cache key, causing memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 14, 2024
1 parent 77daa21 commit 1c09105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Color GetRegionColor(Rectangle rectangle)
Scan0 = buffer
};

Bitmaps[rectangle.Size] = buff;
Bitmaps[_bitmapSize] = buff;
}

var srcData = _bitmap.LockBits(
Expand Down

0 comments on commit 1c09105

Please sign in to comment.