tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/360-removing-mediator-and-view-from-memoryRobotlegs: Discussion 2018-10-18T16:35:20Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/39245622010-11-22T12:07:06Z2010-11-22T12:07:06Zremoving mediator and view from memory<div><p>Hi Seb,</p>
<p>are you using signals?</p>
<p>When you say 'all injected properties' - what are you injecting?</p>
<p>And which version of RL / SwiftSuspenders are you using?</p>
<p>I have to manually remove my listeners from any injected signals by overriding preRemove. I don't inject anything other than Signals and a variation on the eventMap into my Mediators, so I don't know whether you'd need to null out any injected models etc.</p>
<p>If you have overridden preRemove / onRemove, don't forget to call super.preRemove etc as well. (I've done that one before).</p>
<p>If you want to paste some code up, that would be helpful.</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/39245622010-11-22T19:35:16Z2010-11-22T19:35:17Zremoving mediator and view from memory<div><p>I injected a the view and a model which extends actor. the model has a signal. but the mediator does not have any injected signals.</p>
<p>i am removing all listeners added to the view manually on the onRemove method. from what you are saying i should be doing this in the preRemove method. and yes i do use super.preRemove and super.onRemove.</p>
<p>i will need to check what the RL and SS are.</p>
<p>thx for the help it's much appreciated.</p>
<p>S</p></div>sebtag:robotlegs.tenderapp.com,2009-10-18:Comment/39245622010-11-22T19:42:09Z2010-11-22T19:42:09Zremoving mediator and view from memory<div><p>Are you removing your listener from the model signal (if you're adding one) ?</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/39245622010-11-23T15:36:00Z2010-11-23T15:36:02Zremoving mediator and view from memory<div><p>ok problem solved.</p>
<p>we had an instance of an object that was being retained.</p>
<p>thanks for the support.</p>
<p>s</p></div>seb