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:
parent
aeeeb2c8d9
commit
9c6f2e592e
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user