0.2.3
Fixes
- Added null pointer checks in
create_sound
, as passing invalid parameters returns a null pointer and attempting to use theSound
value could lead to undefined behavior. Instead, this function panics.try_create_sound
was added, which returns anOption<_>
instead.
Enhancements
- Memory layout of resource types
Sound
,Music
andImage
were changed to take advantage of the fact that the raw pointer is never null.
Full Changelog: 0.2.2...0.2.3