Skip to content

Commit

Permalink
Merge pull request #126 from oNaiPs/fix_retain_on_pluginmediastreamtrack
Browse files Browse the repository at this point in the history
Bugfix retain on pluginMediaStreamTrack will not allow camera/mic to be freed
  • Loading branch information
ibc committed Feb 4, 2016
2 parents 5d4aaa3 + 826893a commit d25fe27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iosrtcPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class iosrtcPlugin : CDVPlugin {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener()")

let id = command.argumentAtIndex(0) as! String
let pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]
weak var pluginMediaStreamTrack = self.pluginMediaStreamTracks[id]

if pluginMediaStreamTrack == nil {
NSLog("iosrtcPlugin#MediaStreamTrack_setListener() | ERROR: pluginMediaStreamTrack with id=\(id) does not exist")
Expand Down

0 comments on commit d25fe27

Please sign in to comment.