From: Stevan Little <stevan.little@iinteractive.com>
Date: Thu, 31 Jan 2008 17:48:57 +0000 (+0000)
Subject: fixed demolish calls
X-Git-Tag: 0_37~12
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=649b9340169af23939ddd2ef62e51ce1653c7327;p=gitmo%2FMoose.git

fixed demolish calls
---

diff --git a/Changes b/Changes
index 07d6d75..9b2ff91 100644
--- a/Changes
+++ b/Changes
@@ -9,17 +9,21 @@ Revision history for Perl extension Moose
     * Moose::Meta::Class
       Moose::Meta::Method::Constructor
       Moose::Meta::Attribute        
-        - making (init_arg => undef) work here too
-          (thanks to nothingmuch)
+      - making (init_arg => undef) work here too
+        (thanks to nothingmuch)
     
     * Moose::Util::TypeConstraints
       Moose::Util::TypeConstraints::OptimizedConstraints
       Moose::Meta::Attribute
       Moose::Meta::Method::Constructor
       Moose::Meta::Method::Accessor            
-        - making type errors use the 
-          assigned message (thanks to Sartak)
-          - added tests for this
+      - making type errors use the 
+        assigned message (thanks to Sartak)
+        - added tests for this
+
+    * Moose::Meta::Method::Destructor
+      - making sure DESTROY gets inlined properly 
+        with successive DEMOLISH calls (thanks to manito)
 
 0.36 Sat. Jan. 26, 2008
     * Moose::Role
diff --git a/lib/Moose/Meta/Method/Destructor.pm b/lib/Moose/Meta/Method/Destructor.pm
index 09db416..2e98191 100644
--- a/lib/Moose/Meta/Method/Destructor.pm
+++ b/lib/Moose/Meta/Method/Destructor.pm
@@ -7,7 +7,7 @@ use warnings;
 use Carp         'confess';
 use Scalar::Util 'blessed', 'weaken';
 
-our $VERSION   = '0.01';
+our $VERSION   = '0.02';
 our $AUTHORITY = 'cpan:STEVAN';
 
 use base 'Moose::Meta::Method',