Navlib: Ensure a pointer is initialized.
This commit is contained in:
parent
fb23fe3084
commit
a42ef9de77
|
@ -28,6 +28,8 @@ NL_SCHEMATIC_PLUGIN::NL_SCHEMATIC_PLUGIN()
|
||||||
{
|
{
|
||||||
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
|
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
|
||||||
m_impl = new NL_SCHEMATIC_PLUGIN_IMPL();
|
m_impl = new NL_SCHEMATIC_PLUGIN_IMPL();
|
||||||
|
else
|
||||||
|
m_impl = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ NL_PCBNEW_PLUGIN::NL_PCBNEW_PLUGIN( PCB_DRAW_PANEL_GAL* aViewport )
|
||||||
{
|
{
|
||||||
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
|
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
|
||||||
m_impl = new NL_PCBNEW_PLUGIN_IMPL( aViewport );
|
m_impl = new NL_PCBNEW_PLUGIN_IMPL( aViewport );
|
||||||
|
else
|
||||||
|
m_impl = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue