Changeset 1426

Show
Ignore:
Timestamp:
02/28/08 22:06:10 (16 months ago)
Author:
mpaschal
Message:

Stop leaking MT::Builder objects through persistent references in MT::Template::Contexts
(apply part of Hirotaka Ogawa's patch--thanks!)
BugzID: 66845

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-30/lib/MT/Builder.pm

    r1424 r1426  
    293293        $cond = {}; 
    294294    } 
    295     $ctx->stash('builder', $build); 
     295    # Avoids circular reference between MT::Template::Context and MT::Builder. 
     296    local $ctx->{__stash}{builder} = $build; 
    296297    my $res = ''; 
    297298    my $ph = $ctx->post_process_handler;