Merge branch 'mesa_7_6_branch'

This commit is contained in:
Brian Paul 2009-10-28 18:27:25 -06:00
commit 0ea575d721
2 changed files with 6 additions and 1 deletions

View file

@ -385,6 +385,7 @@ intel_create_renderbuffer(GLenum intFormat)
default:
_mesa_problem(NULL,
"Unexpected intFormat in intel_create_renderbuffer");
_mesa_free(irb);
return NULL;
}

View file

@ -587,8 +587,12 @@ _mesa_make_temp_chan_image(GLcontext *ctx, GLuint dims,
/* unpack and transfer the source image */
tempImage = (GLchan *) _mesa_malloc(srcWidth * srcHeight * srcDepth
* components * sizeof(GLchan));
if (!tempImage)
if (!tempImage) {
if (freeSrcImage) {
_mesa_free((void *) srcAddr);
}
return NULL;
}
dst = tempImage;
for (img = 0; img < srcDepth; img++) {