Opened 7 years ago

Closed 7 years ago

#1297 closed defect (fixed)

Mismatched new[] and delete

Reported by: cohen Owned by:
Priority: minor Milestone: HM+SCC-2.0
Component: HM SCC Version: SCC-1.0 (RExt-7.0)
Keywords: Cc: jct-vc@…

Description

In SCM 1.0, TEncSearch.cpp, lines 213 and 216, "delete" should probably be changed to "delete []". The corrected version is shown below:

#if SCMQ0248_INTRABC_FULLFRAME_SEARCH

if(m_pcIntraBCHashTable)
{

for(int iDepth = 0; iDepth < SCMQ0248_INTRABC_HASH_DEPTH; iDepth++)
{

if(m_pcIntraBCHashTable[iDepth])
{

delete [] m_pcIntraBCHashTable[iDepth];

}

}
delete [] m_pcIntraBCHashTable;

}

m_pcIntraBCHashTable = NULL;

#endif

m_tmpYuvPred.destroy();

}

Change History (3)

comment:1 Changed 7 years ago by DefaultCC Plugin

  • Cc jct-vc@… added

comment:2 Changed 7 years ago by cohen

  • Milestone changed from HM+RExt-7.0 to HM+SCC-2.0

comment:3 Changed 7 years ago by krishna

  • Resolution set to fixed
  • Status changed from new to closed

Fix applied in r4001.

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Always)
  • krishna(Participant)
  • Robert Cohen(Reporter, Participant)