Permalink
Browse files

Fix another memory leak

  • Loading branch information...
1 parent dd6d4b4 commit 4b177454400ed1147d4d8b0573f3a9075ab8c203 @bobtfish committed Jan 11, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 CHANGES
  2. +1 −1 lib/Git/PurePerl/DirectoryEntry.pm
View
@@ -1,7 +1,7 @@
Revision history for Perl module Git::PurePerl:
- Add config file handling via Config::GitLike
- - Fix a memory leak due to unweakened circular references.
+ - Fix a couple of memory leaks due to unweakened circular references.
0.45 Mon 21st Dec 12:36:29 GMT 2009
- Be Win32 compatible (RT#52677), patch contributed by kmx.
@@ -7,7 +7,7 @@ use namespace::autoclean;
has 'mode' => ( is => 'ro', isa => 'Str', required => 1 );
has 'filename' => ( is => 'ro', isa => 'Str', required => 1 );
has 'sha1' => ( is => 'ro', isa => 'Str', required => 1 );
-has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1 );
+has 'git' => ( is => 'ro', isa => 'Git::PurePerl', required => 1, weak_ref => 1 );
sub object {
my $self = shift;

0 comments on commit 4b17745

Please sign in to comment.