Blender Git Loki
Git Commits -> Revision 3edae09
Revision 3edae09 by Sybren A. Stüvel (master) October 18, 2021, 13:48 (GMT) |
Asset Library Service: fix failing unit test On GCC in release mode (and maybe also debug mode without ASAN enabled), allocating an `AssetLibraryService` will reuse the space that should have just been freed. This made a test fail, as it was testing that new memory was allocated and not some old instance reused. To ensure that the calls that should allocate a new block of memory return a unique pointer, I added some dummy allocation to the test. No functional changes to Blender |
Commit Details:
Full Hash: 3edae09eaaa6e4b7dca9bac4c98ad23edf9d08e5
Parent Commit: 729b2d0
Lines Changed: +18, -0
1 Modified Path:
/source/blender/blenkernel/intern/asset_library_service_test.cc (+18, -0) (Diff)