Skip to content

Commit

Permalink
JADE: Catch all exceptions in the Room destructor
Browse files Browse the repository at this point in the history
This fixes Coverity Scan issue #1399013.
  • Loading branch information
DrMcCoy committed Feb 25, 2019
1 parent 68ecfff commit d61af99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engines/jade/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ Room::Room(const Common::UString &resRef, uint32 id, float x, float y, float z,
}

Room::~Room() {
unload();
try {
unload();
} catch (...) {
}
}

const Common::UString &Room::getResRef() const {
Expand Down

0 comments on commit d61af99

Please sign in to comment.