EPhotoCache: Fix a memory leak