How to save unused data (materials, images, meshes... etc)
Click the F icon:



This adds a fake user which acts like an object using the material, preventing it from being deleted.

See the reference manual page on the topic.