From b55eb0b5f1740678108a7e53a689e91b3cac66a1 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Sat, 30 Dec 2017 19:55:11 -0500 Subject: [PATCH] Eeschema: fix assertion in LIB_PART destructor. A new legacy symbol library plugin deletes all of the aliases from each LIB_PART object that it owns cause an assertion in the dtor which calls GetName() which checks for an empty alias list to prevent a segfault. Remove the call to GetName() from the dtor trace message. Fixes lp:1740597 https://bugs.launchpad.net/kicad/+bug/1740597 --- eeschema/class_libentry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/class_libentry.cpp b/eeschema/class_libentry.cpp index ccb00bfc0d..2955bb9bba 100644 --- a/eeschema/class_libentry.cpp +++ b/eeschema/class_libentry.cpp @@ -209,8 +209,8 @@ LIB_PART::LIB_PART( LIB_PART& aPart, PART_LIB* aLibrary ) : LIB_PART::~LIB_PART() { wxLogTrace( traceSchLibMem, - wxT( "%s: destroying part '%s' with alias list count of %llu." ), - GetChars( wxString::FromAscii( __WXFUNCTION__ ) ), GetChars( GetName() ), + wxT( "%s: destroying part with alias list count of %llu." ), + GetChars( wxString::FromAscii( __WXFUNCTION__ ) ), (long long unsigned) m_aliases.size() ); // If the part is being deleted directly rather than through the library,