mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 23:42:16 -05:00
Fix: Memory leak in purge orphans with no unused data-blocks
Operator cutom data was allocated but not freed in the early return.
This commit is contained in:
parent
ad625d8dc4
commit
86e1ef2e31
1 changed files with 2 additions and 0 deletions
|
@ -2288,6 +2288,8 @@ static int outliner_orphans_purge_exec(bContext *C, wmOperator *op)
|
|||
|
||||
if (data.num_total[INDEX_ID_NULL] == 0) {
|
||||
BKE_report(op->reports, RPT_INFO, "No orphaned data-blocks to purge");
|
||||
MEM_delete(static_cast<LibQueryUnusedIDsData *>(op->customdata));
|
||||
op->customdata = nullptr;
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue