Fixed launch crash because of double file close 85/213385/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 4 Sep 2019 18:15:28 +0000 (19:15 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 4 Sep 2019 18:15:28 +0000 (19:15 +0100)
Change-Id: I2fe6832289f49728e0cb05ecbe9d15e892cef6c6

examples/rendering-basic-pbr/ktx-loader.cpp

index 579724e..790d1e2 100644 (file)
@@ -146,8 +146,6 @@ bool LoadCubeMapFromKtxFile( const std::string& path, CubeData& cubedata )
   unsigned char* imgPointer = buffer;
   result = fread(buffer,1,lSize,fp);
 
-  fclose(fp);
-
   if( 0 == result )
   {
     free( buffer );