Add some bad allocation checks

This commit is contained in:
Markus Gans 2017-08-12 23:11:21 +02:00
parent abd501b558
commit 3854de73d3
1 changed files with 1 additions and 0 deletions

View File

@ -795,6 +795,7 @@ void FMenuItem::createDialogList (FMenu* winmenu)
catch (const std::bad_alloc& ex)
{
std::cerr << "not enough memory to alloc " << ex.what() << std::endl;
return;
}
if ( n < 9 )