~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/wrap.cc

  • Committer: lbieber at stabletransit
  • Date: 2010-10-13 16:02:28 UTC
  • mfrom: (1840.1.5 clean-valgrind-warnings)
  • mto: This revision was merged to the branch mainline in revision 1844.
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101013160228-6gonkvy780lijxgy
Merge Monty - more valgrind cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
WrapSyslog::~WrapSyslog ()
39
39
{
40
40
  ::closelog();
41
 
  delete &(WrapSyslog::singleton());
42
41
}
43
42
 
44
43
WrapSyslog& WrapSyslog::singleton()
45
44
{
46
 
  static WrapSyslog *handle = new WrapSyslog();
47
 
  return *handle;
 
45
  static WrapSyslog handle;
 
46
  return handle;
48
47
}
49
48
 
50
49
/* TODO, for the sake of performance, scan through all the priority