Sim Model Dialog: Fix nullptr dereference

This commit is contained in:
Mikolaj Wielgus
2022-10-04 17:48:10 +02:00
parent 4611817f25
commit c2765f40ca
+1 -1
View File
@@ -45,7 +45,7 @@ DIALOG_SIM_MODEL<T>::DIALOG_SIM_MODEL( wxWindow* aParent, SCH_SYMBOL& aSymbol,
: DIALOG_SIM_MODEL_BASE( aParent ),
m_symbol( aSymbol ),
m_fields( aFields ),
m_library( nullptr ),
m_library( std::make_shared<SIM_LIBRARY_SPICE>() ),
m_prevModel( nullptr ),
m_firstCategory( nullptr ),
m_prevParamGridSelection( nullptr ),