Memory Leak UIImagePicker

I have have multiple project that use the UIImagePickerControllerDelegate, UIPickerViewDelegate. There were no memory leaks until I switched from swift 3.2 to 4. Now everytime I get an image from the gallery and return. I get one CFString leak per time I select an image, and if I cancel inside the UIImagePicker then I there is no leak. Any help would be appreciated.


Please show any relevant code (e.g., the code that shows/dismisses the image picker).

I can confirm that the UIImagePickerController indeed is leaking. I have a Github-Repository which demonstrates that bug. You can reproduce this bug with selecting one of the buttons and either take a picture/video or simply cancel the UIImagePickerController. In Instruments you can see a memory leak right after that.

Yep, and if you were calling your controller from another, you might find it's not deinit'ing and retaining because of the image picker. That seems to be inconsistent but reproduceable in many cases. 😟

有没有解决此问题?
Memory Leak UIImagePicker
 
 
Q