Changeset 650


Ignore:
Timestamp:
08/01/2011 02:03:24 AM (10 months ago)
Author:
ofer
Message:

Adapt upstream simple_html_dom change to remove a memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/core/shd/simple_html_dom.php

    r459 r650  
    586586    function clear() { 
    587587        foreach($this->nodes as $n) {$n->clear(); $n = null;} 
     588          // This add next line is documented in the sourceforge repository. 2977248 as a fix for ongoing memory leaks that occur even with the use of clear. 
     589        if (isset($this->children)) foreach ($this->children as $n) {$n->clear(); $n = null;} 
    588590        if (isset($this->parent)) {$this->parent->clear(); unset($this->parent);} 
    589591        if (isset($this->root)) {$this->root->clear(); unset($this->root);} 
Note: See TracChangeset for help on using the changeset viewer.