X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FTxnScopeGuard.pm;fp=lib%2FDBIx%2FClass%2FStorage%2FTxnScopeGuard.pm;h=31a2d5bea4b5e7de01ad23afd22ba842c170ab52;hb=d52fc26dd05b56a41494a5ec86cddecfe3587b96;hp=111621b1896745548efe49bd936f1c2b4d32d1ba;hpb=7e1774f762f0290fae3f9f9104a5d5dc52a1c017;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/TxnScopeGuard.pm b/lib/DBIx/Class/Storage/TxnScopeGuard.pm index 111621b..31a2d5b 100644 --- a/lib/DBIx/Class/Storage/TxnScopeGuard.pm +++ b/lib/DBIx/Class/Storage/TxnScopeGuard.pm @@ -105,6 +105,11 @@ sub DESTROY { $@ = $current_exception if DBIx::Class::_ENV_::UNSTABLE_DOLLARAT; + + # Dummy NEXTSTATE ensuring the all temporaries on the stack are garbage + # collected before leaving this scope. Depending on the code above, this + # may very well be just a preventive measure guarding future modifications + undef; } 1;