In order to better suit the upcoming changes of shader node previews, this patch replaces the old implementation of the storage of the compositor previews. It also prevents memory loss for future modification. BKE_node_preview_clear_tree was removed as it is no longer needed and will not be used by the new shader node previews. Pull Request: https://projects.blender.org/blender/blender/pulls/110064