Commit: 3753a0b72bd855fb2ed458ef2c06682b227ec6fd Author: Erik Date: Thu Dec 9 01:48:11 2021 +0100 Branches: master https://developer.blender.org/rB3753a0b72bd855fb2ed458ef2c06682b227ec6fd
Fix T93523: Memory leak in Menu Search Fixes a memory leak introduced by D13225. Caused by not freeing the hash-map in some cases. Differential Revision: https://developer.blender.org/D13432 =================================================================== M source/blender/blenkernel/intern/screen.c =================================================================== diff --git a/source/blender/blenkernel/intern/screen.c b/source/blender/blenkernel/intern/screen.c index 5c81b3e238a..cd8493ee559 100644 --- a/source/blender/blenkernel/intern/screen.c +++ b/source/blender/blenkernel/intern/screen.c @@ -45,6 +45,7 @@ #include "DNA_view3d_types.h" #include "DNA_workspace_types.h" +#include "BLI_ghash.h" #include "BLI_listbase.h" #include "BLI_math_vector.h" #include "BLI_mempool.h" @@ -671,6 +672,11 @@ void BKE_area_region_free(SpaceType *st, ARegion *region) region_free_gizmomap_callback(region->gizmo_map); } + if (region->runtime.block_name_map != NULL) { + BLI_ghash_free(region->runtime.block_name_map, NULL, NULL); + region->runtime.block_name_map = NULL; + } + BLI_freelistN(®ion->ui_lists); BLI_freelistN(®ion->ui_previews); BLI_freelistN(®ion->panels_category); _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
