DIRECTOR: Remove erroneous widget deletion

This reverts commit 48599bd622.
This commit is contained in:
Nathanael Gentry 2020-07-24 09:03:29 -04:00
parent bf1a12220f
commit 91ac560619
2 changed files with 2 additions and 7 deletions

View File

@ -45,13 +45,8 @@ CastMember::CastMember(Cast *cast, uint16 castId, Common::SeekableReadStreamEndi
_modified = true;
}
CastMember::~CastMember() {
if (_widget)
delete _widget;
}
BitmapCastMember::BitmapCastMember(Cast *cast, uint16 castId, Common::SeekableReadStreamEndian &stream, uint32 castTag, uint16 version, uint8 flags1)
: CastMember(cast, castId, stream) {
: CastMember(cast, castId, stream) {
_type = kCastBitmap;
_img = nullptr;
_matte = nullptr;

View File

@ -55,7 +55,7 @@ struct Resource;
class CastMember {
public:
CastMember(Cast *cast, uint16 castId, Common::SeekableReadStreamEndian &stream);
virtual ~CastMember();
virtual ~CastMember() {}
Cast *getCast() { return _cast; }
uint16 getID() { return _castId; }