]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
call DB_DataObject::__destruct() if it exists
authorEvan Prodromou <evan@status.net>
Tue, 15 Dec 2009 17:38:15 +0000 (12:38 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 15 Dec 2009 17:38:15 +0000 (12:38 -0500)
classes/Memcached_DataObject.php

index 360fb44243c935f11668b6053843afa36bdeb5e2..70e9e351d5e8855f814d168b2505091f8b427bf1 100644 (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)