Browse Source

PresetUpdater: Fix double free from Perl

Vojtech Kral 6 years ago
parent
commit
93a902a757
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/Slic3r.pm

+ 1 - 0
lib/Slic3r.pm

@@ -162,6 +162,7 @@ sub thread_cleanup {
     *Slic3r::TriangleMesh::DESTROY          = sub {};
     *Slic3r::GUI::AppConfig::DESTROY        = sub {};
     *Slic3r::GUI::PresetBundle::DESTROY     = sub {};
+    *Slic3r::PresetUpdater::DESTROY         = sub {};
     return undef;  # this prevents a "Scalars leaked" warning
 }