mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
progs/tests: Fix memory leak in arbgpuprog.c.
This commit is contained in:
parent
a54033bedb
commit
773de83d3c
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue