From 17413019739a195360877f8a80b07a2ccd732a11 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 31 Aug 2013 01:23:47 +0200 Subject: [PATCH] Fix segfault when appending an ExtrusionPath::Collection to another Collection --- xs/xsp/ExtrusionEntityCollection.xsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xsp/ExtrusionEntityCollection.xsp b/xs/xsp/ExtrusionEntityCollection.xsp index 19c84914c..90adaf3dc 100644 --- a/xs/xsp/ExtrusionEntityCollection.xsp +++ b/xs/xsp/ExtrusionEntityCollection.xsp @@ -56,7 +56,7 @@ ExtrusionEntityCollection::append(...) } else if (ExtrusionLoop* loop = dynamic_cast(entity)) { THIS->entities.push_back( new ExtrusionLoop(*loop) ); } else { - THIS->entities.push_back( new ExtrusionEntityCollection(*(ExtrusionEntityCollection*)entity) ); + THIS->entities.push_back( (*(ExtrusionEntityCollection*)entity).clone() ); } }