The Material buttons copy/paste options (icons) didn't work for node trees. Code was forgetting to free memory properly.