Added sql_free_result() calls where appropriate
authorfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 22 Dec 2009 14:31:25 +0000 (14:31 +0000)
committerfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 22 Dec 2009 14:31:25 +0000 (14:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/overlays/trunk@27963 735d13b6-9817-0410-8766-e36946ffe9aa

class.tx_overlays.php
ext_emconf.php

index 6ccd519..a64ba71 100644 (file)
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
-*
-* $Id$
 ***************************************************************/
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- * Hint: use extdeveval to insert/update function index above.
- */
 
 
 /**
  * It aims to improve on the performance of the original overlaying mechanism provided by t3lib_page
  * and to provide a more useful API for developers
  *
- * @author     Francois Suter (Cobweb) <typo3@cobweb.ch>
- * @package    TYPO3
+ * @author             Francois Suter (Cobweb) <typo3@cobweb.ch>
+ * @package            TYPO3
  * @subpackage tx_overlays
+ *
+ * $Id$
  */
 class tx_overlays {
 
@@ -92,6 +87,7 @@ class tx_overlays {
                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                        $records[] = $row;
                }
+               $GLOBALS['TYPO3_DB']->sql_free_result($res);
 
                        // If we have both a uid and a pid field, we can proceed with overlaying the records
                if ($doOverlays) {
@@ -399,6 +395,7 @@ class tx_overlays {
                                if (!isset($overlays[$row[$tableCtrl['transOrigPointerField']]])) $overlays[$row[$tableCtrl['transOrigPointerField']]] = array();
                                $overlays[$row[$tableCtrl['transOrigPointerField']]][$row['pid']] = $row;
                        }
+                       $GLOBALS['TYPO3_DB']->sql_free_result($res);
                }
                return $overlays;
        }
@@ -428,6 +425,7 @@ class tx_overlays {
                        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                                $overlays[$row[$tableCtrl['transOrigPointerField']]] = $row;
                        }
+                       $GLOBALS['TYPO3_DB']->sql_free_result($res);
                }
                return $overlays;
        }
index 7e8717a..9f5cdfa 100644 (file)
@@ -29,7 +29,7 @@ $EM_CONF[$_EXTKEY] = array(
        'clearCacheOnLoad' => 0,
        'lockType' => '',
        'author_company' => '',
-       'version' => '0.2.2',
+       'version' => '0.2.3',
        'constraints' => array(
                'depends' => array(
                ),