Fix some ResourceWarnings.