From dbc7831d0c235e0d9c44ad10d4b9f529048dba90 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 24 Nov 2020 13:43:55 +0000 Subject: [PATCH] Potential fix for recursive error crash. Fixes https://gitlab.com/kicad/code/kicad/issues/6471 --- common/footprint_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/footprint_info.cpp b/common/footprint_info.cpp index 4be3b59ddf..cd3ac63cf1 100644 --- a/common/footprint_info.cpp +++ b/common/footprint_info.cpp @@ -103,7 +103,7 @@ void FOOTPRINT_LIST::DisplayErrors( wxTopLevelWindow* aWindow ) wxString msg; - while( const std::unique_ptr& error = PopError() ) + while( std::unique_ptr error = PopError() ) { wxString tmp = error->Problem();