Ignore:
Timestamp:
Feb 17, 2010, 10:39:53 PM (15 years ago)
Author:
grum
Message:

Optimize some memory leak and some bugged lines of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/JpegMetaData/Readers/IptcReader.class.php

    r4698 r4904  
    8787    }
    8888
     89    function __destruct()
     90    {
     91      parent::__destruct();
     92    }
     93
     94
    8995    public function toString()
    9096    {
     
    132138          array_splice($this->entries, $tagT, 1);
    133139        }
     140        unset($tagD);
     141        unset($tagT);
    134142      }
    135143    }
     
    199207        unset($block);
    200208      }
     209      unset($blocks);
    201210
    202211      foreach($this->entries as $key => $tag)
     
    296305          $tag=$this->tagDef->getTagById(0x0114);
    297306          $returned=$tag['tagValues.special'][ConvertData::toUShort($values, BYTE_ORDER_BIG_ENDIAN)];
     307          unset($tag);
    298308          break;
    299309        case 0x0203: // 2:03  - Object Type Reference
Note: See TracChangeset for help on using the changeset viewer.