equal
deleted
inserted
replaced
48 } |
48 } |
49 |
49 |
50 CIoSession::~CIoSession() |
50 CIoSession::~CIoSession() |
51 { |
51 { |
52 delete iFindByNameMatch; |
52 delete iFindByNameMatch; |
53 const TInt maxNumObjects = iHandles->Count(); |
53 if (iHandles) |
54 for (TInt i = 0; i < maxNumObjects; ++i) |
|
55 { |
54 { |
56 CIoObject* obj = static_cast<CIoObject*>((*iHandles)[i]); |
55 const TInt maxNumObjects = iHandles->Count(); |
57 if (obj != NULL) |
56 for (TInt i = 0; i < maxNumObjects; ++i) |
58 { |
57 { |
59 obj->SessionClosed(*this); |
58 CIoObject* obj = static_cast<CIoObject*>((*iHandles)[i]); |
|
59 if (obj != NULL) |
|
60 { |
|
61 obj->SessionClosed(*this); |
|
62 } |
60 } |
63 } |
61 } |
64 } |
62 Server().DropSession(); |
65 Server().DropSession(); |
63 delete iHandles; |
66 delete iHandles; |
64 LOG(CIoLog::Printf(_L("CIoSession 0x%08x destroyed\r\n"), this)); |
67 LOG(CIoLog::Printf(_L("CIoSession 0x%08x destroyed\r\n"), this)); |