1
Fix a long-standing bug where the media repository could leak file descriptors while previewing media.