Alembic hair writer: avoid double-free
authorSybren A. Stüvel <sybren@stuvel.eu>
Thu, 7 Jun 2018 15:55:13 +0000 (17:55 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Thu, 7 Jun 2018 17:01:45 +0000 (19:01 +0200)
source/blender/alembic/intern/abc_hair.cc

index b11a790..b5adc44 100644 (file)
@@ -97,8 +97,6 @@ void AbcHairWriter::do_write()
                }
        }
 
-       BKE_id_free(NULL, mesh);
-
        Alembic::Abc::P3fArraySample iPos(verts);
        m_sample = OCurvesSchema::Sample(iPos, hvertices);
        m_sample.setBasis(Alembic::AbcGeom::kNoBasis);