pd-rs / crankstart

A barely functional, wildly incomplete and basically undocumented Rust crate whose aim is to let you write Games for the Playdate handheld gaming system in Rust.
MIT License
235 stars 24 forks source link

Fix UB in `Graphics::get_debug_bitmap()` #58

Closed parasyte closed 1 year ago

parasyte commented 1 year ago

Adds state to track ownership of the bitmap, implying that it is safe to free the underlying memory. The only bitmap that is not owned, AFAICT, is the debug bitmap in the simulator.

Fixes #57

boozook commented 1 year ago

Thank you!