mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
JANITORIAL: Fix Coverity warnings
Fixes coverity warnings 1267220, 1256936, 1229470, 1224097, 1219766, 1054364, 1009896.
This commit is contained in:
parent
5c813a8b64
commit
fb3bd8139a
@ -99,7 +99,7 @@ Bone::~Bone() {
|
||||
}
|
||||
|
||||
AnimationStateEmi::AnimationStateEmi(const Common::String &anim) :
|
||||
_skel(nullptr), _looping(false), _active(false),
|
||||
_skel(nullptr), _looping(false), _active(false), _paused(false),
|
||||
_fadeMode(Animation::None), _fade(1.0f), _fadeLength(0), _time(0), _startFade(1.0f),
|
||||
_boneJoints(nullptr) {
|
||||
_anim = g_resourceloader->getAnimationEmi(anim);
|
||||
|
@ -32,7 +32,8 @@
|
||||
namespace Grim {
|
||||
|
||||
InputDialog::InputDialog(const Common::String &message, const Common::String &string, bool hasTextField) :
|
||||
GUI::Dialog(30, 20, 260, 124), _hasTextField(hasTextField) {
|
||||
GUI::Dialog(30, 20, 260, 124), _hasTextField(hasTextField),
|
||||
m_text(nullptr) {
|
||||
|
||||
const int screenW = g_system->getOverlayWidth();
|
||||
const int screenH = g_system->getOverlayHeight();
|
||||
|
@ -219,7 +219,7 @@ Material::Material(const Common::String &filename, Common::SeekableReadStream *d
|
||||
}
|
||||
|
||||
Material::Material() :
|
||||
Object(), _currImage(0), _data(nullptr) {
|
||||
Object(), _currImage(0), _data(nullptr), _clampTexture(false) {
|
||||
}
|
||||
|
||||
void Material::reload(CMap *cmap) {
|
||||
|
@ -476,6 +476,7 @@ SmushDecoder::SmushVideoTrack::SmushVideoTrack(int width, int height, int fps, i
|
||||
}
|
||||
|
||||
SmushDecoder::SmushVideoTrack::~SmushVideoTrack() {
|
||||
delete _codec48;
|
||||
delete _blocky8;
|
||||
delete _blocky16;
|
||||
_surface.free();
|
||||
|
@ -38,7 +38,8 @@ Sector::Sector() :
|
||||
}
|
||||
|
||||
Sector::Sector(const Sector &other) :
|
||||
_vertices(nullptr), _origVertices(nullptr), _sortplanes(nullptr) {
|
||||
_vertices(nullptr), _origVertices(nullptr), _sortplanes(nullptr),
|
||||
_numSortplanes(0) {
|
||||
*this = other;
|
||||
}
|
||||
|
||||
|
@ -197,6 +197,8 @@ void Set::loadText(TextSplitter &ts) {
|
||||
void Set::loadBinary(Common::SeekableReadStream *data) {
|
||||
// yes, an array of size 0
|
||||
_cmaps = nullptr;//new CMapPtr[0];
|
||||
_numCmaps = 0;
|
||||
_numObjectStates = 0;
|
||||
|
||||
|
||||
_numSetups = data->readUint32LE();
|
||||
|
@ -148,7 +148,7 @@ FrameBuffer::FrameBuffer(GLuint texture_name, uint width, uint height, uint text
|
||||
}
|
||||
|
||||
FrameBuffer::~FrameBuffer() {
|
||||
glDeleteRenderbuffers(2, &_renderBuffers[0]);
|
||||
glDeleteRenderbuffers(2, _renderBuffers);
|
||||
glDeleteFramebuffers(1, &_frameBuffer);
|
||||
if (_managedTexture)
|
||||
glDeleteTextures(1, &_colorTexture);
|
||||
@ -156,7 +156,7 @@ FrameBuffer::~FrameBuffer() {
|
||||
|
||||
void FrameBuffer::init() {
|
||||
glGenFramebuffers(1, &_frameBuffer);
|
||||
glGenRenderbuffers(2, &_renderBuffers[0]);
|
||||
glGenRenderbuffers(2, _renderBuffers);
|
||||
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, _frameBuffer);
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, _colorTexture, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user