From 4e0f45f5cc4911b529040c82058b255049426e93 Mon Sep 17 00:00:00 2001 From: "rsleevi@chromium.org" Date: Fri, 18 May 2012 18:00:22 +0000 Subject: RefCounted types should not have public destructors, Linux fixes BUG=123295 TEST=none Review URL: https://chromiumcodereview.appspot.com/10392152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137893 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_glib.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'base/message_pump_glib.cc') diff --git a/base/message_pump_glib.cc b/base/message_pump_glib.cc index 07db124..fb318b7 100644 --- a/base/message_pump_glib.cc +++ b/base/message_pump_glib.cc @@ -161,13 +161,6 @@ MessagePumpGlib::MessagePumpGlib() g_source_attach(work_source_, context_); } -MessagePumpGlib::~MessagePumpGlib() { - g_source_destroy(work_source_); - g_source_unref(work_source_); - close(wakeup_pipe_read_); - close(wakeup_pipe_write_); -} - void MessagePumpGlib::RunWithDispatcher(Delegate* delegate, MessagePumpDispatcher* dispatcher) { #ifndef NDEBUG @@ -323,6 +316,13 @@ void MessagePumpGlib::ScheduleDelayedWork(const TimeTicks& delayed_work_time) { ScheduleWork(); } +MessagePumpGlib::~MessagePumpGlib() { + g_source_destroy(work_source_); + g_source_unref(work_source_); + close(wakeup_pipe_read_); + close(wakeup_pipe_write_); +} + MessagePumpDispatcher* MessagePumpGlib::GetDispatcher() { return state_ ? state_->dispatcher : NULL; } -- cgit v1.1