Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Issue 87045: Plug hole in struct event lifecycle; should fix bug 10503 (Closed)

Created:
11 years, 8 months ago by dank
Modified:
9 years, 7 months ago
Reviewers:
jeremy
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

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" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14233

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -11 lines) Patch
M base/message_loop_unittest.cc View 1 2 2 chunks +75 lines, -0 lines 0 comments Download
M base/message_pump_libevent.h View 2 chunks +1 line, -2 lines 0 comments Download
M base/message_pump_libevent.cc View 1 2 3 4 chunks +32 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dank
How's this look? Passes net and base under valgrind now.
11 years, 8 months ago (2009-04-21 19:55:25 UTC) #1
jeremy
http://codereview.chromium.org/87045/diff/1/2 File base/message_loop_unittest.cc (right): http://codereview.chromium.org/87045/diff/1/2#newcode1385 Line 1385: #if defined(OS_LINUX) OS_POSIX? Is there anything that prevents ...
11 years, 8 months ago (2009-04-21 20:03:51 UTC) #2
dank
Done, I think. Also fixed a leak (assigning to NULL was about right after all), ...
11 years, 8 months ago (2009-04-21 23:22:02 UTC) #3
dank
Cleaned up new comment (which had glaring mistakes), moved away from scoped_ptr since it no ...
11 years, 8 months ago (2009-04-22 17:50:13 UTC) #4
jeremy
http://codereview.chromium.org/87045/diff/2001/2003 File base/message_pump_libevent.cc (right): http://codereview.chromium.org/87045/diff/2001/2003#newcode175 Line 175: event_del(evt); delete evt? Maybe keep using scoped_ptr just ...
11 years, 8 months ago (2009-04-22 17:56:15 UTC) #5
dank
Done.
11 years, 8 months ago (2009-04-22 18:23:46 UTC) #6
jeremy
11 years, 8 months ago (2009-04-22 19:41:25 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698