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:
Lukas Toenne
2011-10-12 13:53:03 +00:00
parent 4689d78b5c
commit da0354e054

View File

@@ -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;