equal
deleted
inserted
replaced
170 // |
170 // |
171 // Store the messagebody into handler's attribute |
171 // Store the messagebody into handler's attribute |
172 // If memory runs out, tough luck.. |
172 // If memory runs out, tough luck.. |
173 // |
173 // |
174 TPtrC8 messageBodyPtr; |
174 TPtrC8 messageBodyPtr; |
175 iPushMsg->GetMessageBody( messageBodyPtr ); |
175 if ( iPushMsg->GetMessageBody( messageBodyPtr ) ) |
176 iBody = messageBodyPtr.Alloc(); |
176 { |
177 if ( !iBody ) |
177 iBody = messageBodyPtr.Alloc(); |
178 { |
178 if ( !iBody ) |
179 LOGTEXT( _L("HandleMessageL(): Out of memory when allocating body buffer") ); |
179 { |
180 // Commit suicide - the caller expects it even if we leave |
180 LOGTEXT( _L("HandleMessageL(): Out of memory when allocating body buffer") ); |
181 iPluginKiller->KillPushPlugin(); |
181 // Commit suicide - the caller expects it even if we leave |
182 User::Leave( KErrNoMemory ); |
182 iPluginKiller->KillPushPlugin(); |
|
183 User::Leave( KErrNoMemory ); |
|
184 } |
183 } |
185 } |
184 |
186 |
185 // |
187 // |
186 // Setting 'this' active and complete in order to get to RunL |
188 // Setting 'this' active and complete in order to get to RunL |
187 // |
189 // |