projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1afe30
)
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>
Tue, 17 Nov 2009 00:31:34 +0000
(16:31 -0800)
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);
}
}