| Index: core/src/fxcodec/codec/fx_codec_progress.h
|
| diff --git a/core/src/fxcodec/codec/fx_codec_progress.h b/core/src/fxcodec/codec/fx_codec_progress.h
|
| index 45fde21338b122a99fe2ec2a8029ab1609147e78..4fb13640ff6bea7f2e2ffd63a096b65c6cebf980 100644
|
| --- a/core/src/fxcodec/codec/fx_codec_progress.h
|
| +++ b/core/src/fxcodec/codec/fx_codec_progress.h
|
| @@ -21,11 +21,7 @@ struct PixelWeight {
|
| class CFXCODEC_WeightTable {
|
| public:
|
| CFXCODEC_WeightTable() { m_pWeightTables = NULL; }
|
| - ~CFXCODEC_WeightTable() {
|
| - if (m_pWeightTables != NULL) {
|
| - FX_Free(m_pWeightTables);
|
| - }
|
| - }
|
| + ~CFXCODEC_WeightTable() { FX_Free(m_pWeightTables); }
|
|
|
| void Calc(int dest_len,
|
| int dest_min,
|
| @@ -44,11 +40,7 @@ class CFXCODEC_WeightTable {
|
| class CFXCODEC_HorzTable {
|
| public:
|
| CFXCODEC_HorzTable() { m_pWeightTables = NULL; }
|
| - ~CFXCODEC_HorzTable() {
|
| - if (m_pWeightTables != NULL) {
|
| - FX_Free(m_pWeightTables);
|
| - }
|
| - }
|
| + ~CFXCODEC_HorzTable() { FX_Free(m_pWeightTables); }
|
|
|
| void Calc(int dest_len, int src_len, FX_BOOL bInterpol);
|
| PixelWeight* GetPixelWeight(int pixel) {
|
| @@ -61,11 +53,7 @@ class CFXCODEC_HorzTable {
|
| class CFXCODEC_VertTable {
|
| public:
|
| CFXCODEC_VertTable() { m_pWeightTables = NULL; }
|
| - ~CFXCODEC_VertTable() {
|
| - if (m_pWeightTables != NULL) {
|
| - FX_Free(m_pWeightTables);
|
| - }
|
| - }
|
| + ~CFXCODEC_VertTable() { FX_Free(m_pWeightTables); }
|
| void Calc(int dest_len, int src_len);
|
| PixelWeight* GetPixelWeight(int pixel) {
|
| return (PixelWeight*)(m_pWeightTables + pixel * m_ItemSize);
|
|
|