summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 12:55:40 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 12:55:40 +0000
commita37257783d52115189e8d0671b31899f4dfc4c54 (patch)
tree435b8d0957c7f3f06f34c0ecc9cbae304fbde0c0 /chrome/browser/task_manager.h
parent3790d4d8957fcc016f8ef6a29d6f1b6f2e311761 (diff)
downloadchromium_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.h2
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,