]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind.pm
Bump copyright year
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind.pm
index d003528be0d3158d2efc541426d7547aa5d05f87..8809c6544f58ce2630cbcbca503bacfb44498be7 100644 (file)
@@ -233,10 +233,9 @@ sub import {
 
 END {
  if ($run and eval { require DynaLoader; 1 }) {
-  for (@DynaLoader::dl_librefs) {
-   next unless defined;
-   undef $_ if DynaLoader::dl_unload_file($_);
-  }
+  my @rest;
+  DynaLoader::dl_unload_file($_) and push @rest, $_ for @DynaLoader::dl_librefs;
+  @DynaLoader::dl_librefs = @rest;
  }
 }
 
@@ -286,7 +285,7 @@ H.Merijn Brand, for daring to test this thing.
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2008 Vincent Pit, all rights reserved.
+Copyright 2008-2009 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.