On Mon Sep 9 10:22:06 2024 +0000, AlexeyLushnikov wrote:
But we create new dc and bitmap in local variables blit_dc and blt_bitmap. The caller doesn't know anything about them and can't free them. Please correct me if I'm wrong.
Yes, the bug is that we're missing assignments to `*hdc` and `*bitmap`, probably at the end of the big `else` block.