Skip to content

Commit

Permalink
Add deinit to log class instance deallocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Feb 16, 2016
1 parent 5d4aaa3 commit f5e27f7
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PluginGetUserMedia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class PluginGetUserMedia {
}


deinit {
NSLog("PluginGetUserMedia#deinit()")
}


func call(
constraints: NSDictionary,
callback: (data: NSDictionary) -> Void,
Expand Down
5 changes: 5 additions & 0 deletions src/PluginMediaStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class PluginMediaStream : NSObject, RTCMediaStreamDelegate {
}


deinit {
NSLog("PluginMediaStream#deinit()")
}


func run() {
NSLog("PluginMediaStream#run()")

Expand Down
5 changes: 5 additions & 0 deletions src/PluginMediaStreamRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ class PluginMediaStreamRenderer : NSObject, RTCEAGLVideoViewDelegate {
}


deinit {
NSLog("PluginMediaStreamRenderer#deinit()")
}


func run() {
NSLog("PluginMediaStreamRenderer#run()")

Expand Down
5 changes: 5 additions & 0 deletions src/PluginMediaStreamTrack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ class PluginMediaStreamTrack : NSObject, RTCMediaStreamTrackDelegate {
}


deinit {
NSLog("PluginMediaStreamTrack#deinit()")
}


func run() {
NSLog("PluginMediaStreamTrack#run() [kind:\(self.kind), id:\(self.id)]")

Expand Down
5 changes: 5 additions & 0 deletions src/PluginRTCDataChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ class PluginRTCDataChannel : NSObject, RTCDataChannelDelegate {
}


deinit {
NSLog("PluginRTCDataChannel#deinit()")
}


/**
* Constructor for pc.ondatachannel event.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/PluginRTCPeerConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class PluginRTCPeerConnection : NSObject, RTCPeerConnectionDelegate, RTCSessionD
}


deinit {
NSLog("PluginRTCPeerConnection#deinit()")
}


func run() {
NSLog("PluginRTCPeerConnection#run()")

Expand Down
5 changes: 5 additions & 0 deletions src/PluginRTCPeerConnectionConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class PluginRTCPeerConnectionConfig {
}


deinit {
NSLog("PluginRTCPeerConnectionConfig#deinit()")
}


func getIceServers() -> [RTCICEServer] {
NSLog("PluginRTCPeerConnectionConfig#getIceServers()")

Expand Down
5 changes: 5 additions & 0 deletions src/PluginRTCPeerConnectionConstraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ class PluginRTCPeerConnectionConstraints {
}


deinit {
NSLog("PluginRTCPeerConnectionConstraints#deinit()")
}


func getConstraints() -> RTCMediaConstraints {
NSLog("PluginRTCPeerConnectionConstraints#getConstraints()")

Expand Down

0 comments on commit f5e27f7

Please sign in to comment.