imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailrequestqueue.cpp
equal
deleted
inserted
replaced
161 if ( request->RequestCompleted() && !request->IsRequestActive() && aRequestAO != request) |
161 if ( request->RequestCompleted() && !request->IsRequestActive() && aRequestAO != request) |
162 { |
162 { |
163 // delete completed task |
163 // delete completed task |
164 TN_DEBUG3( "CThumbnailRequestQueue::RemoveCompleted() - deleted id = %d (0x%08x)", request->RequestId(), request); |
164 TN_DEBUG3( "CThumbnailRequestQueue::RemoveCompleted() - deleted id = %d (0x%08x)", request->RequestId(), request); |
165 delete request; |
165 delete request; |
|
166 request = NULL; |
166 iRequests.Remove( i ); |
167 iRequests.Remove( i ); |
167 } |
168 } |
168 } |
169 } |
169 |
170 |
170 if(!iRequests.Count()) |
171 if(!iRequests.Count()) |
201 TN_DEBUG2( "CThumbnailRequestQueue::CancelRequest() - canceled request ID: %d", aRequestId); |
202 TN_DEBUG2( "CThumbnailRequestQueue::CancelRequest() - canceled request ID: %d", aRequestId); |
202 } |
203 } |
203 else |
204 else |
204 { |
205 { |
205 delete request; |
206 delete request; |
|
207 request = NULL; |
206 iRequests.Remove( i ); |
208 iRequests.Remove( i ); |
207 |
209 |
208 TN_DEBUG2( "CThumbnailRequestQueue::CancelRequest() - removed request ID: %d", aRequestId); |
210 TN_DEBUG2( "CThumbnailRequestQueue::CancelRequest() - removed request ID: %d", aRequestId); |
209 } |
211 } |
210 |
212 |