User Tools

Site Tools


dev:plugin:gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dev:plugin:gui [2013/02/23 18:25]
reaby [Windows]
dev:plugin:gui [2013/07/17 10:08] (current)
Line 112: Line 112:
         $this->​hide();​         $this->​hide();​
     }     }
 +   
 +    // remember every time to create the destroy method and call destroy() for custom elements + frames. 
 +    // do also clearComponents() for frames and basic layout to minimize memory leaks.
     function destroy() {     function destroy() {
 +       ​$this->​buttonOk->​destroy();​
        ​ActionHandler::​getInstance()->​deleteAction($this->​actionOK);​        ​ActionHandler::​getInstance()->​deleteAction($this->​actionOK);​
 +       ​$this->​clearComponents();​
        ​parent::​destroy();​        ​parent::​destroy();​
     }     }
dev/plugin/gui.txt · Last modified: 2013/07/17 10:08 (external edit)