~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.cc

  • Committer: Monty Taylor
  • Date: 2010-10-15 20:18:02 UTC
  • mto: (1859.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1860.
  • Revision ID: mordred@inaugust.com-20101015201802-ei0f9g720hfk9z8j
Track lifecycle of sys_var different form plugin_sysvar

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "config.h"
21
21
#include "drizzled/module/module.h"
22
22
#include "drizzled/set_var.h"
 
23
#include "drizzled/util/functors.h"
23
24
 
24
25
namespace drizzled
25
26
{
29
30
 
30
31
Module::~Module()
31
32
{
32
 
  for (Variables::iterator iter= sys_vars.begin();
33
 
       iter != sys_vars.end();
34
 
       ++iter)
35
 
  {
36
 
    delete *iter;
37
 
  }
 
33
  for_each(sys_vars.begin(), sys_vars.end(), DeletePtr());
38
34
}
39
35
 
40
36
} /* namespace module */