-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory corruption & leaks in Image (#240)
Image was calling SwapRedBlue unconditionally based on compile-time values. That meant that greyscale images would try to swap Red and Blue channels, but there is only one channel. This resulted in artifacts on the final image as well as memory corruption as the last pixels would be swapped against out of bound regions. Additionally, there were several instances where FIBITMAP handles were leaking. Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
- Loading branch information
1 parent
e70a75d
commit 4c0ee89
Showing
1 changed file
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters