| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index 72c88b9b0510985c189c789ce41f2f2dad336412..51249fd9cc7becfe0b2db5c0912d111d2a4dfe4e 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -186,10 +186,6 @@ GpuChildThread::GpuChildThread(
|
| }
|
|
|
| GpuChildThread::~GpuChildThread() {
|
| - while (!deferred_messages_.empty()) {
|
| - delete deferred_messages_.front();
|
| - deferred_messages_.pop();
|
| - }
|
| }
|
|
|
| void GpuChildThread::Shutdown() {
|
| @@ -319,7 +315,8 @@ void GpuChildThread::OnInitialize(const gpu::GpuPreferences& gpu_preferences) {
|
| gpu_info_.initialization_time = base::Time::Now() - process_start_time_;
|
| Send(new GpuHostMsg_Initialized(!dead_on_arrival_, gpu_info_));
|
| while (!deferred_messages_.empty()) {
|
| - Send(deferred_messages_.front());
|
| + const LogMessage& log = deferred_messages_.front();
|
| + Send(new GpuHostMsg_OnLogMessage(log.severity, log.header, log.message));
|
| deferred_messages_.pop();
|
| }
|
|
|
|
|