diff options
author | Evan Prodromou <evan@status.net> | 2009-12-15 12:38:15 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-15 12:38:15 -0500 |
commit | 22f02b35ad58030a093563a7df683962b4d165c5 (patch) | |
tree | 09e762b17e7c8158f2909cf72194738905ad785a /classes/Memcached_DataObject.php | |
parent | 945661d9426ef90a6ff6feaab3733c6b569dac7e (diff) |
call DB_DataObject::__destruct() if it exists
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 360fb4424..70e9e351d 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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) |