DJIWidget icon indicating copy to clipboard operation
DJIWidget copied to clipboard

Fix a memory leak due to captured strong self and a retain cycle

Open devinlane opened this issue 4 years ago • 1 comments

  • Don't use self in a capturing block
  • Use weak for an unowned object

devinlane avatar Dec 08 '20 04:12 devinlane

With this change I no longer leak DJILiveViewRenderContext and DJILiveViewRenderProgram objects after using the video previewer.

devinlane avatar Dec 08 '20 04:12 devinlane