smalltalk
/
osmo-st-msc
Archived
1
0
Fork 0

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.
This commit is contained in:
Holger Hans Peter Freyther 2014-03-14 20:07:30 +01:00
parent 0481c085f1
commit b98ef6f373
2 changed files with 2 additions and 1 deletions

View File

@ -285,7 +285,7 @@ GSMTransaction subclass: GSMMOCall [
]
cancel [
remoteLeg ifNotNil: [remoteLeg netTerminate].
remoteLeg ifNotNil: [remoteLeg netTerminate. remoteLeg := nil].
^ super cancel
]

View File

@ -54,6 +54,7 @@ Osmo.SIPCall subclass: SIPMTCall [
newLeg := msc selectRedirectFor: self to: aContact.
remoteLeg changeRemoteLeg: newLeg.
remoteLeg := nil.
]
sessionNew [