projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc5f07d
)
progs/demos: Fix memory leak in projtex.c.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 00:31:34 +0000
(16:31 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 4 Dec 2009 06:44:55 +0000
(22:44 -0800)
(cherry picked from commit
ee555e3d69c8820f27e71e5ebc028a768cef7d0b
)
progs/demos/projtex.c
patch
|
blob
|
history
diff --git
a/progs/demos/projtex.c
b/progs/demos/projtex.c
index 99154d7bdc8b2439b865924e32f8a901c8f0b6f7..ad205c741374b11cf21e161861ebd7c4b48b791f 100644
(file)
--- 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);
}
}