Skip to content

Commit

Permalink
Fixed memory leak in GLTexture_Prepare inadvertently introduced in pr…
Browse files Browse the repository at this point in the history
…evious commit.
  • Loading branch information
danij-deng committed Feb 26, 2011
1 parent 56291cc commit 64aac60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -2889,6 +2889,7 @@ gltexture_inst_t* GLTexture_Prepare(gltexture_t* tex, void* context, byte* resul
{ // Yes. Quantize down from RGA(+A) to Indexed(+A), replacing the old image.
GL_ConvertBuffer(image.width, image.height, 4, ((image.flags & IMGF_IS_MASKED)? 2 : 1),
rgbaPixels, image.pixels, 0, false);
free(rgbaPixels);
}

// Lets not do this again.
Expand Down

0 comments on commit 64aac60

Please sign in to comment.