1
0
forked from 0ad/0ad

Don't check memory allocation made using new

Refs: #5288

Patch By: @animus
Accepted By: @phosit
Comments By: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D5234
This was SVN commit r28014.
This commit is contained in:
phosit 2024-01-21 14:29:30 +00:00
parent aeeeb2c8d9
commit 9c6f2e592e
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2022 Wildfire Games.
/* Copyright (C) 2024 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -113,7 +113,7 @@ CTerrainTextureEntry::CTerrainTextureEntry(CTerrainPropertiesPtr properties, con
{
CTerrainPropertiesPtr ret (new CTerrainProperties(properties));
ret->LoadXml(child, &XeroFile, path);
if (ret) m_pProperties = ret;
m_pProperties = ret;
}
else if (child_name == el_tag)
{

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2021 Wildfire Games.
/* Copyright (C) 2024 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -550,7 +550,7 @@ ISoundItem* CSoundManager::ItemForData(CSoundData* itemData)
answer = new CStreamItem(itemData);
}
if (answer && m_Worker)
if (m_Worker)
m_Worker->addItem(answer);
}