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
This commit is contained in:
parent
e062780e9c
commit
b55eb0b5f1
|
@ -209,8 +209,8 @@ LIB_PART::LIB_PART( LIB_PART& aPart, PART_LIB* aLibrary ) :
|
||||||
LIB_PART::~LIB_PART()
|
LIB_PART::~LIB_PART()
|
||||||
{
|
{
|
||||||
wxLogTrace( traceSchLibMem,
|
wxLogTrace( traceSchLibMem,
|
||||||
wxT( "%s: destroying part '%s' with alias list count of %llu." ),
|
wxT( "%s: destroying part with alias list count of %llu." ),
|
||||||
GetChars( wxString::FromAscii( __WXFUNCTION__ ) ), GetChars( GetName() ),
|
GetChars( wxString::FromAscii( __WXFUNCTION__ ) ),
|
||||||
(long long unsigned) m_aliases.size() );
|
(long long unsigned) m_aliases.size() );
|
||||||
|
|
||||||
// If the part is being deleted directly rather than through the library,
|
// If the part is being deleted directly rather than through the library,
|
||||||
|
|
Loading…
Reference in New Issue