Workaround for a perl 5.10 bug about leaked scalars. #503
This commit is contained in:
parent
f899deb6b6
commit
c7bc9bed46
1 changed files with 4 additions and 0 deletions
|
@ -865,6 +865,10 @@ sub OnDropFiles {
|
|||
my $self = shift;
|
||||
my ($x, $y, $filenames) = @_;
|
||||
|
||||
# stop scalars leaking on older perl
|
||||
# https://rt.perl.org/rt3/Public/Bug/Display.html?id=70602
|
||||
@_ = ();
|
||||
|
||||
# only accept STL and AMF files
|
||||
return 0 if grep !/\.(?:stl|amf(?:\.xml)?)$/i, @$filenames;
|
||||
|
||||
|
|
Loading…
Reference in a new issue