2.5
Bugfix in ctx itterator: CTX_DATA_COUNT() didn't free memory.
This commit is contained in:
@@ -333,8 +333,11 @@ int ctx_data_list_count(const bContext *C, int (*func)(const bContext*, ListBase
|
||||
{
|
||||
ListBase list;
|
||||
|
||||
if(func(C, &list))
|
||||
return BLI_countlist(&list);
|
||||
if(func(C, &list)) {
|
||||
int tot= BLI_countlist(&list);
|
||||
BLI_freelistN(&list);
|
||||
return tot;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user