[2680] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH] Remove the DESTROY hook in MainLoopCompatHook

daemon@ATHENA.MIT.EDU (David Benjamin)
Wed Sep 29 15:50:02 2010

From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Wed, 29 Sep 2010 15:49:49 -0400

It can't cause a timer leak and is causing spew in tests.
---
 perl/lib/BarnOwl/MainLoopCompatHook.pm |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/perl/lib/BarnOwl/MainLoopCompatHook.pm b/perl/lib/BarnOwl/MainLoopCompatHook.pm
index 35cdb2f..8367a69 100644
--- a/perl/lib/BarnOwl/MainLoopCompatHook.pm
+++ b/perl/lib/BarnOwl/MainLoopCompatHook.pm
@@ -36,11 +36,6 @@ sub clear {
     $self->{hook}->clear();
 }
 
-sub DESTROY {
-    my $self = shift;
-    $self->clear();
-}
-
 sub _ensure_timer {
   my $self = shift;
   BarnOwl::debug("Enabling backwards-compatibility \"main loop\" hook");
-- 
1.7.3.1.g716de


home help back first fref pref prev next nref lref last post