Commit 022f02ca authored by Thomas Guillem's avatar Thomas Guillem

VLCMediaPlayer: fix libvlc_media_player leak

The instance is already retained.
parent 92289e85
......@@ -263,7 +263,6 @@ static void HandleMediaPlayerSnapshot(const libvlc_event_t * event, void * self)
libvlc_retain([_privateLibrary instance]);
_playerInstance = playerInstance;
libvlc_media_player_retain(_playerInstance);
[self registerObservers];
}
......@@ -1310,7 +1309,6 @@ static void HandleMediaPlayerSnapshot(const libvlc_event_t * event, void * self)
}
libvlc_retain([_privateLibrary instance]);
_playerInstance = libvlc_media_player_new([_privateLibrary instance]);
libvlc_media_player_retain(_playerInstance);
[self registerObservers];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment