summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-17 15:24:40 -0800
committerVinson Lee <[email protected]>2009-11-17 15:24:40 -0800
commit773de83d3c942186f7e8ab87b5a0180d9a2d9f58 (patch)
treea2d3e403f5395b3a826ad9af5b9ad8094b797333
parenta54033bedb1d3ac7f7a0c1365c25c638e58de566 (diff)
progs/tests: Fix memory leak in arbgpuprog.c.
-rw-r--r--progs/tests/arbgpuprog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/tests/arbgpuprog.c b/progs/tests/arbgpuprog.c
index 23aa899d963..6098dca787b 100644
--- 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,