Avoid memory leaks by breaking reference cycle: Print -> Fill -> Print

This commit is contained in:
Mark Hindess 2013-04-18 22:49:43 +01:00
parent aac2c45450
commit 8c26f0da30

View File

@ -17,7 +17,7 @@ use Slic3r::Geometry::Clipper qw(union_ex diff diff_ex intersection_ex offset);
use Slic3r::Surface ':types';
has 'print' => (is => 'ro', required => 1);
has 'print' => (is => 'ro', required => 1, weak_ref => 1);
has 'fillers' => (is => 'rw', default => sub { {} });
our %FillTypes = (