From: Vinson Lee Date: Tue, 17 Nov 2009 00:31:34 +0000 (-0800) Subject: progs/demos: Fix memory leak in projtex.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5820dae4ecad11097ddc024441ea45aa9fefa290;p=mesa.git progs/demos: Fix memory leak in projtex.c. (cherry picked from commit ee555e3d69c8820f27e71e5ebc028a768cef7d0b) --- diff --git a/progs/demos/projtex.c b/progs/demos/projtex.c index 99154d7bdc8..ad205c74137 100644 --- a/progs/demos/projtex.c +++ b/progs/demos/projtex.c @@ -245,6 +245,9 @@ loadImageTextures(void) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); } glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, borderColor); + + free(texData3); + free(texData4); } }