- 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:
parent
bb8e16e490
commit
c30a3674f2
|
@ -22,6 +22,8 @@
|
||||||
#include "global_preferences.hh"
|
#include "global_preferences.hh"
|
||||||
#include "cpu_policies_gatekeeper.hh"
|
#include "cpu_policies_gatekeeper.hh"
|
||||||
|
|
||||||
|
#include "deletor.tcc"
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <glibmm/ustring.h>
|
#include <glibmm/ustring.h>
|
||||||
#include <glibmm/timer.h>
|
#include <glibmm/timer.h>
|
||||||
|
@ -67,7 +69,7 @@ PythonCPUPolicyManager::PythonCPUPolicyManager()
|
||||||
|
|
||||||
PythonCPUPolicyManager::~PythonCPUPolicyManager()
|
PythonCPUPolicyManager::~PythonCPUPolicyManager()
|
||||||
{
|
{
|
||||||
for_each(_policies.begin(), _policies.end(), ptr_fun(operator delete));
|
for_each(_policies.begin(), _policies.end(), memory::deletor<CPUPolicy>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue