Added missing SAFE_RELEASE for reader.