imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailrequestqueue.cpp
branchRCL_3
changeset 20 2b4b06654caa
parent 19 f759b6186ab5
child 21 6257223ede8a
equal deleted inserted replaced
19:f759b6186ab5 20:2b4b06654caa
   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