Skip to content
Snippets Groups Projects
Commit ca3a04ab authored by Olivier Couet's avatar Olivier Couet
Browse files

Fix coverity report #33109

git-svn-id: http://root.cern.ch/svn/root/trunk@41220 27541ba8-7e3a-0410-8455-c3a389f83636
parent 8d653389
No related branches found
No related tags found
No related merge requests found
......@@ -785,6 +785,7 @@ TImage *TFITSHDU::ReadAsImage(Int_t layer, TImagePalette *pal)
//Build the image stretching pixels into a range from 0.0 to 255.0
//TImage *im = new TImage(width, height);
TImage *im = TImage::Create();
if (!im) return 0;
TArrayD *layer_pixels = new TArrayD(pixels_per_layer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment