Browse Source

Merge pull request #70 from nigelgbanks/memory-leak-fix

Added a function for forgetting a object when memory constraints apply.
pull/72/merge
Ben Woodhead 13 years ago
parent
commit
9f8dad23e8
  1. 9
      api/fedora_item.inc

9
api/fedora_item.inc

@ -56,6 +56,15 @@ class Fedora_Item {
} }
} }
/**
* Forget this Object, do manually when memory constraints apply.
*
* Removes this object from the static list of $instantiated_pids
*/
function forget() {
unset(Fedora_Item::$instantiated_pids[$this->pid]);
}
/** /**
* Exists * Exists
* @return type * @return type

Loading…
Cancel
Save