Mesa (mesa_7_6_branch): progs/demos: Fix memory leak in projtex.c.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 22:45:06 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 5820dae4ecad11097ddc024441ea45aa9fefa290
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5820dae4ecad11097ddc024441ea45aa9fefa290

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Nov 16 16:31:34 2009 -0800

progs/demos: Fix memory leak in projtex.c.
(cherry picked from commit ee555e3d69c8820f27e71e5ebc028a768cef7d0b)

---

 progs/demos/projtex.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/progs/demos/projtex.c b/progs/demos/projtex.c
index 99154d7..ad205c7 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);
   }
 }
 



More information about the mesa-commit mailing list