mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 03:00:24 +00:00
Fix a memory leak in function rglCgCreateProgramGroupFromFile in rgl_ps3_cg.cpp.
This commit is contained in:
parent
080436fd23
commit
83da083a24
@ -266,6 +266,7 @@ static CGprogramGroup rglCgCreateProgramGroupFromFile( CGcontext ctx, const char
|
||||
if ( NULL == ptr )
|
||||
{
|
||||
rglCgRaiseError( CG_MEMORY_ALLOC_ERROR );
|
||||
fclose(fp);
|
||||
return ( CGprogramGroup )NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user