From e7ee4c1f797fab91015d1ac3cfe17cd02914f1b8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 May 2011 10:18:47 +0000 Subject: [PATCH] Fixed Coverity issue. CID 11692: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _allocationMode is not initialized in this constructor nor in any functions that it calls. --- src/osg/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 58d017f86..a6fa94c5a 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -76,6 +76,7 @@ Image::Image(const Image& image,const CopyOp& copyop): _dataType(image._dataType), _packing(image._packing), _pixelAspectRatio(image._pixelAspectRatio), + _allocationMode(USE_NEW_DELETE), _data(0L), _mipmapData(image._mipmapData) { @@ -85,7 +86,6 @@ Image::Image(const Image& image,const CopyOp& copyop): setData(new unsigned char [size],USE_NEW_DELETE); memcpy(_data,image._data,size); } - } Image::~Image()