diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 12:55:40 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 12:55:40 +0000 |
commit | a37257783d52115189e8d0671b31899f4dfc4c54 (patch) | |
tree | 435b8d0957c7f3f06f34c0ecc9cbae304fbde0c0 /chrome/browser/task_manager.h | |
parent | 3790d4d8957fcc016f8ef6a29d6f1b6f2e311761 (diff) | |
download | chromium_src-a37257783d52115189e8d0671b31899f4dfc4c54.zip chromium_src-a37257783d52115189e8d0671b31899f4dfc4c54.tar.gz chromium_src-a37257783d52115189e8d0671b31899f4dfc4c54.tar.bz2 |
Add virtual dtor for TaskManager::ResourceProvider.
It has virtual methods but no virtual dtor. This change may help
fix memory leaks which appeared after adding unit tests for TaskManager.
Review URL: http://codereview.chromium.org/100041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index 866246c..106aeaa 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -84,6 +84,8 @@ class TaskManager : public views::DialogDelegate { // MessageLoop::InvokeLater(). class ResourceProvider : public base::RefCounted<ResourceProvider> { public: + virtual ~ResourceProvider() {} + // Should return the resource associated to the specified ids, or NULL if // the resource does not belong to this provider. virtual TaskManager::Resource* GetResource(int process_id, |