summaryrefslogtreecommitdiffstats
path: root/chrome/views/grid_layout.cc
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 00:35:34 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-02 00:35:34 +0000
commit2fefef1a5e1f86058e3b79d5b6e139440bec4251 (patch)
tree0cbdf6fa130b39377f766b533eea379de5d5bc49 /chrome/views/grid_layout.cc
parentb4210d547621bb4a3f821e83b975478d32505e18 (diff)
downloadchromium_src-2fefef1a5e1f86058e3b79d5b6e139440bec4251.zip
chromium_src-2fefef1a5e1f86058e3b79d5b6e139440bec4251.tar.gz
chromium_src-2fefef1a5e1f86058e3b79d5b6e139440bec4251.tar.bz2
Found a bug in the BaseTimer (used by OneShotTimer).
If you have a OneShotTimer pending, and you destroy your message loop, the cleanup of the timer will use memory which was already freed by the MessageLoop. When the MessageLoop shuts down, it deletes pending tasks. BaseTimer did not provide a virtual destructor to cleanup its "base". Thus, when the actual OneShotTimer cleaned up, it would use deleted memory. This manifested for me when I had accidentally had cleanup of a oneshottimer occurring through the Singleton, which occurs AtExit, after the messageloop is already gone. Created a unit test for this, which does trip the assert due to heap corruption. Review URL: http://codereview.chromium.org/13023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/grid_layout.cc')
0 files changed, 0 insertions, 0 deletions