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

Issue 216018: Fix a bug where we access a view after deletion.... (Closed)

Created:
11 years, 3 months ago by Paul Godavari
Modified:
9 years, 7 months ago
Reviewers:
jcampan
CC:
chromium-reviews_googlegroups.com, Paul Godavari, Ben Goodger (Google)
Visibility:
Public.

Description

Fix a bug where we access a view after deletion. When the download shelf menu option 'Remove' is chosen, the view is removed and deleted (along with the object representing the download) so we must not access them after the removal. This CL NULLs the download pointer in the menu to prevent any futher access. BUG=20810 TEST=Remove an item from the download shelf and Chrome should not crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26536

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M chrome/browser/download/download_shelf.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/download/download_shelf.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/views/download_item_view.cc View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Paul Godavari
11 years, 3 months ago (2009-09-18 00:12:15 UTC) #1
jcampan
11 years, 3 months ago (2009-09-18 00:41:48 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698