projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a54033b
)
progs/tests: Fix memory leak in arbgpuprog.c.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 23:24:40 +0000
(15:24 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 23:24:40 +0000
(15:24 -0800)
progs/tests/arbgpuprog.c
patch
|
blob
|
history
diff --git
a/progs/tests/arbgpuprog.c
b/progs/tests/arbgpuprog.c
index
23aa899
..
6098dca
100644
(file)
--- a/
progs/tests/arbgpuprog.c
+++ b/
progs/tests/arbgpuprog.c
@@
-134,6
+134,8
@@
static void Init( const char *vertProgFile,
}
len = fread(buf, 1, 10*1000,f);
+ fclose(f);
+
glProgramStringARB_func(GL_VERTEX_PROGRAM_ARB,
GL_PROGRAM_FORMAT_ASCII_ARB,
len,
@@
-170,6
+172,8
@@
static void Init( const char *vertProgFile,
}
len = fread(buf, 1, 10*1000,f);
+ fclose(f);
+
glProgramStringARB_func(GL_FRAGMENT_PROGRAM_ARB,
GL_PROGRAM_FORMAT_ASCII_ARB,
len,