fix possible segfault detected as CID1224396.

This commit is contained in:
Boris Faure 2014-07-03 20:56:36 +02:00
parent 3f53f0aa5e
commit 651cbfa08c
1 changed files with 3 additions and 1 deletions

View File

@ -348,7 +348,9 @@ _deferred_renderer(void *data)
Termpty *ty;
unsigned int colors[512];
if ((!mv) || (!mv->is_shown) || (!mv->to_render) || (mv->img_h == 0))
if (!mv) return EINA_FALSE;
if ((!mv->is_shown) || (!mv->to_render) || (mv->img_h == 0))
{
mv->deferred_renderer = NULL;
return EINA_FALSE;