Opencv imread() a picture can't be closed on Mac

Can you show us your code?