- Use deletor for deleting all policies from the manager

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@952 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-28 21:01:32 +00:00
parent bb8e16e490
commit c30a3674f2
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@
#include "global_preferences.hh"
#include "cpu_policies_gatekeeper.hh"
#include "deletor.tcc"
#include <Python.h>
#include <glibmm/ustring.h>
#include <glibmm/timer.h>
@ -67,7 +69,7 @@ PythonCPUPolicyManager::PythonCPUPolicyManager()
PythonCPUPolicyManager::~PythonCPUPolicyManager()
{
for_each(_policies.begin(), _policies.end(), ptr_fun(operator delete));
for_each(_policies.begin(), _policies.end(), memory::deletor<CPUPolicy>());
}