diff --git a/Sources/VLCUI/VLCVideoPlayer/Proxy.swift b/Sources/VLCUI/VLCVideoPlayer/Proxy.swift index 01f0c0f..6520c29 100644 --- a/Sources/VLCUI/VLCVideoPlayer/Proxy.swift +++ b/Sources/VLCUI/VLCVideoPlayer/Proxy.swift @@ -18,8 +18,8 @@ public extension VLCVideoPlayer { class Proxy: ObservableObject { - var mediaPlayer: VLCMediaPlayer? - var videoPlayerView: UIVLCVideoPlayerView? + weak var mediaPlayer: VLCMediaPlayer? + weak var videoPlayerView: UIVLCVideoPlayerView? public init() { self.mediaPlayer = nil