Browse Source

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
pull/5/merge
Wayne Stambaugh 8 years ago
parent
commit
b55eb0b5f1
  1. 4
      eeschema/class_libentry.cpp

4
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,

Loading…
Cancel
Save