Free cache data when creating a new group from selected nodes. This would leave unfreed memory behind otherwise, since node groups don't have internal caches.
This commit is contained in:
@@ -199,6 +199,9 @@ bNode *node_group_make_from_selected(bNodeTree *ntree)
|
||||
}
|
||||
}
|
||||
|
||||
/* node groups don't use internal cached data */
|
||||
ntreeFreeCache(ngroup);
|
||||
|
||||
/* make group node */
|
||||
ntemp.type = NODE_GROUP;
|
||||
ntemp.ngroup = ngroup;
|
||||
|
||||
Reference in New Issue
Block a user