evas-gl-image: Fix dereference after null check
authorChris Michael <cp.michael@samsung.com>
Thu, 5 Oct 2017 13:54:03 +0000 (09:54 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 5 Oct 2017 13:54:03 +0000 (09:54 -0400)
commit7b7161ea13d7d33c6183107a4da5203eddf74217
tree95e48a7b7c3de4e4b734c8d2abc2acc4eae3f613
parentcec6793db4b3bf9838440889d7d774f5f8918d6c
evas-gl-image: Fix dereference after null check

Coverity reports passing a null pointer 'im->gc' to
evas_gl_common_context_flush which directly dereferences it, so lets
be sure that 'im->gc' is valid before passing it to context_flush

Fixes CID1374273

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/gl_common/evas_gl_image.c