diff --git a/src/EbmlMaster.cpp b/src/EbmlMaster.cpp index 17f25eb6..07974268 100644 --- a/src/EbmlMaster.cpp +++ b/src/EbmlMaster.cpp @@ -34,11 +34,7 @@ EbmlMaster::EbmlMaster(const EbmlMaster & ElementToClone) ElementList.reserve(ElementToClone.ListSize()); // add a clone of the list for (const auto& e : ElementToClone.ElementList) - { - auto *clone = e->Clone(); - if (clone != nullptr) - ElementList.push_back(clone); - } + ElementList.push_back(e->Clone()); } EbmlMaster::~EbmlMaster()