phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycardimageloader.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
    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,