forked from enlightenment/efl
Fix possible memory leak reported by klockwork.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
c8256f5fae
commit
23fc3b3da7
|
@ -2754,6 +2754,7 @@ eng_gl_context_create(void *data, void *share_context)
|
||||||
if (!ctx->context)
|
if (!ctx->context)
|
||||||
{
|
{
|
||||||
ERR("eglCreateContext() fail. code=%#x", eglGetError());
|
ERR("eglCreateContext() fail. code=%#x", eglGetError());
|
||||||
|
free(ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue