Add some bad allocation checks
This commit is contained in:
parent
abd501b558
commit
3854de73d3
|
@ -795,6 +795,7 @@ void FMenuItem::createDialogList (FMenu* winmenu)
|
||||||
catch (const std::bad_alloc& ex)
|
catch (const std::bad_alloc& ex)
|
||||||
{
|
{
|
||||||
std::cerr << "not enough memory to alloc " << ex.what() << std::endl;
|
std::cerr << "not enough memory to alloc " << ex.what() << std::endl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( n < 9 )
|
if ( n < 9 )
|
||||||
|
|
Loading…
Reference in New Issue