diff options
author | Julian Eisel <julian@blender.org> | 2022-11-02 13:50:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-11-02 13:56:50 +0300 |
commit | 460c9d3d92e9f74254d58c6bb07d7e4fcb53e8b7 (patch) | |
tree | 3c8174f75bb4b6cc6a6a5839229a6a3b56b1786d /source/blender/editors/asset/intern/asset_list.cc | |
parent | 638bf05a23e1ef7dddd3b5d42d9521d8849a4375 (diff) |
Fix use-after-free in asset library storage destruction
Would only appear when more than 4 asset libraries were loaded, because
small buffer optimization would hide the issue.
Diffstat (limited to 'source/blender/editors/asset/intern/asset_list.cc')
-rw-r--r-- | source/blender/editors/asset/intern/asset_list.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/asset/intern/asset_list.cc b/source/blender/editors/asset/intern/asset_list.cc index 01a6dc46c48..bb72c5cc1bb 100644 --- a/source/blender/editors/asset/intern/asset_list.cc +++ b/source/blender/editors/asset/intern/asset_list.cc @@ -351,7 +351,7 @@ void AssetListStorage::fetch_library(const AssetLibraryReference &library_refere void AssetListStorage::destruct() { - global_storage().~AssetListMap(); + global_storage().clear(); } AssetList *AssetListStorage::lookup_list(const AssetLibraryReference &library_ref) |