You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/07/23 19:44:52 UTC
[lucy-commits] git commit: refs/heads/master - Override Clownfish::Method::DESTROY
to leak all objects
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 <we...@aevum.de>
Authored: Tue Jul 23 19:40:25 2013 +0200
Committer: Nick Wellnhofer <we...@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;