call DB_DataObject::__destruct() if it exists

This commit is contained in:
Evan Prodromou 2009-12-15 12:38:15 -05:00
parent 945661d942
commit 22f02b35ad

View File

@ -28,9 +28,13 @@ class Memcached_DataObject extends DB_DataObject
* this data object when it's unset or goes out of scope.
* DB_DataObject doesn't do this yet by itself.
*/
function __destruct()
{
$this->free();
if (method_exists('DB_DataObject', '__destruct')) {
parent::__destruct();
}
}
function &staticGet($cls, $k, $v=null)