There are multiple cases, like at
|
if (!storage.ReadFile(path, span)) |
, where
NativeMemory.Alloc was called earlier but an early-return from
if (!storage.ReadFile(path, span)) doesn't call
NativeMemory.Free.
Not a big deal, since this only happens if a file failed to load.
There are multiple cases, like at
MoonWorks/src/Graphics/ResourceUploader.cs
Line 149 in 14d8143
NativeMemory.Allocwas called earlier but an early-return fromif (!storage.ReadFile(path, span))doesn't callNativeMemory.Free.Not a big deal, since this only happens if a file failed to load.