summaryrefslogtreecommitdiffstats
path: root/base/message_pump_libevent.h
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 20:01:36 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 20:01:36 +0000
commitf74c89669d1c2406e6af03a84eacc18e3c775547 (patch)
treea87e2c0542f12dda1d2eb7527ebdbbfa469485b5 /base/message_pump_libevent.h
parent5df23b5ea7e1aa9d1cc72c526200bbf212bf867f (diff)
downloadchromium_src-f74c89669d1c2406e6af03a84eacc18e3c775547.zip
chromium_src-f74c89669d1c2406e6af03a84eacc18e3c775547.tar.gz
chromium_src-f74c89669d1c2406e6af03a84eacc18e3c775547.tar.bz2
StopWatchingFileDescriptor needs to free struct event.
Also, there's no point in using scoped_ptr for event_ anymore, so removed that. Should fix http://crbug.com/10503 "Crash in network layer" Review URL: http://codereview.chromium.org/87045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_libevent.h')
-rw-r--r--base/message_pump_libevent.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/message_pump_libevent.h b/base/message_pump_libevent.h
index aa5d5f8..a2a4e1c 100644
--- a/base/message_pump_libevent.h
+++ b/base/message_pump_libevent.h
@@ -6,7 +6,6 @@
#define BASE_MESSAGE_PUMP_LIBEVENT_H_
#include "base/message_pump.h"
-#include "base/scoped_ptr.h"
#include "base/time.h"
// Declare structs we need from libevent.h rather than including it
@@ -44,7 +43,7 @@ class MessagePumpLibevent : public MessagePump {
private:
bool is_persistent_; // false if this event is one-shot.
- scoped_ptr<event> event_;
+ event* event_;
DISALLOW_COPY_AND_ASSIGN(FileDescriptorWatcher);
};