phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycardimageloader.cpp
equal
deleted
inserted
replaced
92 |
92 |
93 delete iImageBuffer; |
93 delete iImageBuffer; |
94 iImageBuffer = NULL; |
94 iImageBuffer = NULL; |
95 delete iImageFileName; |
95 delete iImageFileName; |
96 iImageFileName = NULL; |
96 iImageFileName = NULL; |
|
97 delete iImageDecoding; |
|
98 iImageDecoding = NULL; |
97 |
99 |
98 const TInt fieldCount = fields.FieldCount(); |
100 const TInt fieldCount = fields.FieldCount(); |
99 |
101 |
100 // Check all the fields and store first and last name |
102 // Check all the fields and store first and last name |
101 for ( TInt i = 0; i < fieldCount; ++i ) |
103 for ( TInt i = 0; i < fieldCount; ++i ) |
120 } |
122 } |
121 } |
123 } |
122 |
124 |
123 if( iImageBuffer ) |
125 if( iImageBuffer ) |
124 { |
126 { |
125 delete iImageDecoding; |
|
126 iImageDecoding = NULL; |
|
127 |
|
128 RFs& fs = CEikonEnv::Static()->FsSession(); |
127 RFs& fs = CEikonEnv::Static()->FsSession(); |
129 iImageDecoding = CCCAppImageDecoding::NewL( |
128 iImageDecoding = CCCAppImageDecoding::NewL( |
130 *this, |
129 *this, |
131 fs, |
130 fs, |
132 iImageBuffer, |
131 iImageBuffer, |