mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
SCI: Remove asserting "new" allocation results
This commit is contained in:
parent
f7ba6bb448
commit
4e8db68d4a
@ -267,7 +267,6 @@ ResourceSource::~ResourceSource() {
|
||||
MacResourceForkResourceSource::MacResourceForkResourceSource(const Common::String &name, int volNum)
|
||||
: ResourceSource(kSourceMacResourceFork, name, volNum) {
|
||||
_macResMan = new Common::MacResManager();
|
||||
assert(_macResMan);
|
||||
}
|
||||
|
||||
MacResourceForkResourceSource::~MacResourceForkResourceSource() {
|
||||
|
@ -577,7 +577,6 @@ void ResourcePatcher::patchResource(Resource &resource, const GameResourcePatch
|
||||
assert(newSize > 0);
|
||||
|
||||
target = new byte[newSize];
|
||||
assert(target);
|
||||
|
||||
oldData = resource._data;
|
||||
resource._data = target;
|
||||
|
@ -258,7 +258,6 @@ extern int showScummVMDialog(const Common::U32String &message, const Common::U32
|
||||
|
||||
Common::Error SciEngine::run() {
|
||||
_resMan = new ResourceManager();
|
||||
assert(_resMan);
|
||||
_resMan->addAppropriateSources();
|
||||
_resMan->init();
|
||||
|
||||
|
@ -768,7 +768,6 @@ int MidiDriver_CMS::open() {
|
||||
|
||||
_rate = _mixer->getOutputRate();
|
||||
_cms = new CMSEmulator(_rate);
|
||||
assert(_cms);
|
||||
|
||||
for (uint i = 0; i < ARRAYSIZE(_channel); ++i)
|
||||
_channel[i] = Channel();
|
||||
|
Loading…
Reference in New Issue
Block a user