diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-14 20:07:30 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-04-07 16:08:40 +0200 |
commit | b98ef6f3730e7f59398ea96c5b355b8811d1f856 (patch) | |
tree | ccd8bdbf600b33ef14cb19fd064e108169c12324 | |
parent | 0481c085f1366eb4e3e728d2f9282813cd6a1f8d (diff) |
misc: Forget about some of the objects to help the GC
After we are done using these objects we can set the
reference to nil. This way the GC can recycle them
more quickly.
-rw-r--r-- | src/GSMMOCall.st | 2 | ||||
-rw-r--r-- | src/SIPCall.st | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/GSMMOCall.st b/src/GSMMOCall.st index 7c75776..e84214f 100644 --- a/src/GSMMOCall.st +++ b/src/GSMMOCall.st @@ -285,7 +285,7 @@ GSMTransaction subclass: GSMMOCall [ ] cancel [ - remoteLeg ifNotNil: [remoteLeg netTerminate]. + remoteLeg ifNotNil: [remoteLeg netTerminate. remoteLeg := nil]. ^ super cancel ] diff --git a/src/SIPCall.st b/src/SIPCall.st index f51a5f4..0019800 100644 --- a/src/SIPCall.st +++ b/src/SIPCall.st @@ -54,6 +54,7 @@ Osmo.SIPCall subclass: SIPMTCall [ newLeg := msc selectRedirectFor: self to: aContact. remoteLeg changeRemoteLeg: newLeg. + remoteLeg := nil. ] sessionNew [ |