summaryrefslogtreecommitdiffstats
path: root/progs/demos
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-16 16:31:34 -0800
committerVinson Lee <[email protected]>2009-12-03 22:44:55 -0800
commit5820dae4ecad11097ddc024441ea45aa9fefa290 (patch)
treecb98425e0de6c769f9d1fad56aad5bd03d198390 /progs/demos
parentfc5f07de1aabddaf2c9d599a85ec74cde674275e (diff)
progs/demos: Fix memory leak in projtex.c.
(cherry picked from commit ee555e3d69c8820f27e71e5ebc028a768cef7d0b)
Diffstat (limited to 'progs/demos')
-rw-r--r--progs/demos/projtex.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}