Ignore:
Timestamp:
07/24/07 14:47:27 (5 years ago)
Author:
sys
Message:

memLeaks : ajout de la méthode destroy() pour compenser l'absence d'appel des destructor des XBL si les éléments ont été extraits du Document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_XedLib/chrome/content/scenarixedlib/core/xedUi.xbl.xml

    r9383 r9392  
    666666                                } 
    667667                        ]]></constructor> 
    668                         <destructor> 
    669                                 //memoryleaks 
     668                        <destructor>this.destroy();</destructor> 
     669                        <method name="destroy"> 
     670                                <body> 
     671                                //memLeaks 
    670672                                this.fTimerFocus.cancel(); 
    671673                                this.fTimerFocus = null; 
     
    673675                                this.fTabTw = null; 
    674676                                this.fLineTw = null; 
    675                         </destructor> 
     677                                </body> 
     678                        </method> 
    676679                        <field name="fIsRootEditor">true</field> 
    677680                        <field name="fEditor"/> 
     
    948951                        else this.parentNode.fVerticalScrollbar = this; 
    949952                  ]]></constructor> 
    950                   <destructor><![CDATA[ 
    951                         if (this.orient == 'horizontal') this.parentNode.fHorizontalScrollbar = null; 
    952                         else this.parentNode.fVerticalScrollbar = null; 
    953                   ]]></destructor> 
     953                   
     954                        <destructor>this.destroy();</destructor> 
     955                        <method name="destroy"> 
     956                                <body><![CDATA[ 
     957                                if (this.orient == 'horizontal') this.parentNode.fHorizontalScrollbar = null; 
     958                                else this.parentNode.fVerticalScrollbar = null; 
     959                          ]]></body> 
     960                  </method> 
    954961                </implementation> 
    955962        </binding> 
Note: See TracChangeset for help on using the changeset viewer.