Fix asan(address sanitizer) issue with no plugins

Fix #10470, close #10471
pull/10487/head
Christian Grasser 2021-08-31 07:06:28 +02:00 committed by Don Ho
parent 5c52aff7a1
commit ed5c2631c1
1 changed files with 8 additions and 5 deletions

View File

@ -928,6 +928,8 @@ void Notepad_plus::saveDockingParams()
else
floatCont = nppGUI._dockingData._pluginDockInfo[i]._prevContainer;
if (floatCont >= 0)
{
if (floatContArray[floatCont] == 0)
{
RECT rc;
@ -937,6 +939,7 @@ void Notepad_plus::saveDockingParams()
}
floatContArray[floatCont] = 1;
}
}
if (i < nppGUI._dockingData._pluginDockInfo.size()) // to prevent from crash in debug mode
vPluginDockInfo.push_back(nppGUI._dockingData._pluginDockInfo[i]);
}