equal
deleted
inserted
replaced
63 Cancel(); |
63 Cancel(); |
64 if(EGetting == iState) |
64 if(EGetting == iState) |
65 { |
65 { |
66 iThumbMgr->CancelRequest(iCurrentReq); |
66 iThumbMgr->CancelRequest(iCurrentReq); |
67 } |
67 } |
|
68 |
68 delete iData; |
69 delete iData; |
|
70 iData = NULL; |
|
71 |
69 delete iImgEnc; |
72 delete iImgEnc; |
|
73 iImgEnc = NULL; |
|
74 |
70 #ifdef MTPTHUMBSCALING |
75 #ifdef MTPTHUMBSCALING |
71 delete iScaler; |
76 delete iScaler; |
72 #endif |
77 iScaler = NULL; |
|
78 #endif |
|
79 |
73 delete iBitmap; |
80 delete iBitmap; |
|
81 iBitmap = NULL; |
|
82 |
74 delete iObjectSource; |
83 delete iObjectSource; |
|
84 iObjectSource = NULL; |
|
85 |
75 delete iThumbMgr; |
86 delete iThumbMgr; |
|
87 iThumbMgr = NULL; |
|
88 |
76 if(iActiveSchedulerWait != NULL && iActiveSchedulerWait->IsStarted()) |
89 if(iActiveSchedulerWait != NULL && iActiveSchedulerWait->IsStarted()) |
77 { |
90 { |
78 *iCreationErr = KErrNotReady; |
91 *iCreationErr = KErrNotReady; |
79 iActiveSchedulerWait->AsyncStop(); |
92 iActiveSchedulerWait->AsyncStop(); |
80 } |
93 } |
|
94 |
81 delete iActiveSchedulerWait; |
95 delete iActiveSchedulerWait; |
|
96 iActiveSchedulerWait = NULL; |
|
97 |
82 OstTraceFunctionExit0( CMTPIMAGEDPTHUMBNAILCREATOR_CMTPIMAGEDPTHUMBNAILCREATOR_DES_EXIT ); |
98 OstTraceFunctionExit0( CMTPIMAGEDPTHUMBNAILCREATOR_CMTPIMAGEDPTHUMBNAILCREATOR_DES_EXIT ); |
83 } |
99 } |
84 |
100 |
85 // -------------------------------------------------------------------------- |
101 // -------------------------------------------------------------------------- |
86 // CMTPImageDpThumbnailCreator::CMTPImageDpThumbnailCreator |
102 // CMTPImageDpThumbnailCreator::CMTPImageDpThumbnailCreator |
181 { |
197 { |
182 OstTrace1( TRACE_NORMAL, DUP2_CMTPIMAGEDPTHUMBNAILCREATOR_RUNL, |
198 OstTrace1( TRACE_NORMAL, DUP2_CMTPIMAGEDPTHUMBNAILCREATOR_RUNL, |
183 "CMTPImageDpThumbnailCreator::RunL(),EDoNotCreate; iState %d", iState ); |
199 "CMTPImageDpThumbnailCreator::RunL(),EDoNotCreate; iState %d", iState ); |
184 |
200 |
185 delete iData; |
201 delete iData; |
|
202 iData = NULL; |
186 iData = HBufC8::NewL(1); |
203 iData = HBufC8::NewL(1); |
187 } |
204 } |
188 |
205 |
189 OstTrace1( TRACE_NORMAL, DUP3_CMTPIMAGEDPTHUMBNAILCREATOR_RUNL, "iBuffer->Write(*iData); iState %d", iState ); |
206 OstTrace1( TRACE_NORMAL, DUP3_CMTPIMAGEDPTHUMBNAILCREATOR_RUNL, "iBuffer->Write(*iData); iState %d", iState ); |
190 if(iActiveSchedulerWait->IsStarted()) |
207 if(iActiveSchedulerWait->IsStarted()) |