The new feature printing changed properties in python history list didn't free

a list of context properties. Give lots of leaked small blocks...
This commit is contained in:
Ton Roosendaal
2012-12-28 09:48:35 +00:00
parent 7504cf34b4
commit 67b76a70bc

View File

@@ -371,8 +371,10 @@ PointerRNA CTX_data_pointer_get(const bContext *C, const char *member)
{
bContextDataResult result;
if (ctx_data_get((bContext *)C, member, &result) == 1)
if (ctx_data_get((bContext *)C, member, &result) == 1) {
BLI_freelistN(&result.list);
return result.ptr;
}
else
return PointerRNA_NULL;
}