From e74575db42940453f2de7f20d193c6c9447cdd84 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 22 Jun 2021 11:59:11 +0200 Subject: [PATCH] fixed: in ModelWrapper::clear_childs() childs_map.clear() was called in the loop, should be at the end --- src/modelwrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modelwrapper.h b/src/modelwrapper.h index 12e0b24..c074fe8 100644 --- a/src/modelwrapper.h +++ b/src/modelwrapper.h @@ -99,9 +99,9 @@ public: delete map_item.second; map_item.second = nullptr; } - - childs_map.clear(); } + + childs_map.clear(); } virtual void add_child(const std::wstring & child_name, ModelWrapper * models_base)