fix resource leak on format lookup fail
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 12 Aug 2014 23:49:07 +0000 (08:49 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 12 Aug 2014 23:49:07 +0000 (08:49 +0900)
commit2ac4f520d613543250bae04b9bc149e2f16f2b9a
tree6bc20f4831697b92515c957fbfa42219673829df
parentc0ca1bcf441249c2a646af1e8a5dcc6c00ad3a74
fix resource leak on format lookup fail

so in fixing one CID for a format lookup failing and thus invalid mem
access, a possible leak was made in this case. fix that by doing
lookup before any allocation and if lookup fails, return there

this fixes CID 1230999 1230998 1230997
src/modules/evas/engines/gl_common/evas_gl_texture.c