google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.35k stars 1.83k forks source link

Fix memory leak of asset loading for gltf_viewer #7933

Closed z3moon closed 1 week ago

z3moon commented 1 week ago

When a user drags and drops a gltf file to the gltf_viewer window, it loads the new asset.

While this happens, the function checkAsset tries parsing the gltf file, but it doesn't free it. Fix this.