Fix another memory leak. Support for unnamed resources in the res cache.