lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] git commit: refs/heads/master - Override Clownfish::Method::DESTROY to leak all objects
Date Tue, 23 Jul 2013 17:44:52 GMT
Updated Branches:
  refs/heads/master d078ea1a9 -> 887651432


Override Clownfish::Method::DESTROY to leak all objects

This should fix "Insane attempt to destroy Method" errors during global
destruction.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/88765143
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/88765143
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/88765143

Branch: refs/heads/master
Commit: 8876514321a965b99a6ab2ba8dc4a3b79ffed6c7
Parents: d078ea1
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Tue Jul 23 19:40:25 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Tue Jul 23 19:41:00 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/perl/lib/Clownfish.pm | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/88765143/clownfish/runtime/perl/lib/Clownfish.pm
----------------------------------------------------------------------
diff --git a/clownfish/runtime/perl/lib/Clownfish.pm b/clownfish/runtime/perl/lib/Clownfish.pm
index b4610e3..7d6356e 100644
--- a/clownfish/runtime/perl/lib/Clownfish.pm
+++ b/clownfish/runtime/perl/lib/Clownfish.pm
@@ -132,6 +132,14 @@ sub error {$Clownfish::Err::error}
 }
 
 {
+    package Clownfish::Method;
+    our $VERSION = '0.003000';
+    $VERSION = eval $VERSION;
+    no warnings 'redefine';
+    sub DESTROY { }    # leak all
+}
+
+{
     package Clownfish::ViewByteBuf;
     our $VERSION = '0.003000';
     $VERSION = eval $VERSION;


Mime
View raw message