Changeset 121 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 6 Sep 2012, 18:12:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComDataCU.cpp
r116 r121 90 90 m_pcTrCoeffCr = NULL; 91 91 #if ADAPTIVE_QP_SELECTION 92 #if FIX_MEM_LEAKS 93 m_ArlCoeffIsAliasedAllocation = false; 92 94 m_pcArlCoeffY = NULL; 93 95 m_pcArlCoeffCb = NULL; 94 96 m_pcArlCoeffCr = NULL; 97 #endif 95 98 #endif 96 99 … … 247 250 m_pcArlCoeffCb = m_pcGlbArlCoeffCb; 248 251 m_pcArlCoeffCr = m_pcGlbArlCoeffCr; 252 #if FIX_MEM_LEAKS 253 m_ArlCoeffIsAliasedAllocation = true; 254 #endif 249 255 } 250 256 else … … 362 368 if ( m_pcTrCoeffCr ) { xFree(m_pcTrCoeffCr); m_pcTrCoeffCr = NULL; } 363 369 #if ADAPTIVE_QP_SELECTION 370 #if FIX_MEM_LEAKS 371 if (!m_ArlCoeffIsAliasedAllocation) 372 { 373 xFree(m_pcArlCoeffY); m_pcArlCoeffY = 0; 374 xFree(m_pcArlCoeffCb); m_pcArlCoeffCb = 0; 375 xFree(m_pcArlCoeffCr); m_pcArlCoeffCr = 0; 376 } 377 #endif 364 378 if ( m_pcGlbArlCoeffY ) { xFree(m_pcGlbArlCoeffY); m_pcGlbArlCoeffY = NULL; } 365 379 if ( m_pcGlbArlCoeffCb ) { xFree(m_pcGlbArlCoeffCb); m_pcGlbArlCoeffCb = NULL; }
Note: See TracChangeset for help on using the changeset viewer.