Fix a memory leak in function rglCgCreateProgramGroupFromFile in rgl_ps3_cg.cpp.

This commit is contained in:
Lioncash 2013-10-13 23:19:50 -04:00
parent 080436fd23
commit 83da083a24

View File

@ -266,6 +266,7 @@ static CGprogramGroup rglCgCreateProgramGroupFromFile( CGcontext ctx, const char
if ( NULL == ptr )
{
rglCgRaiseError( CG_MEMORY_ALLOC_ERROR );
fclose(fp);
return ( CGprogramGroup )NULL;
}