return after failed memory allocation

CID 1100649
This commit is contained in:
Sebastian Dransfeld 2014-03-24 13:38:42 +01:00
parent 1c53e10b42
commit 2263fd872e
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ _handle_buf(Termpty *ty, const Eina_Unicode *codepoints, int len)
if (!b)
{
ERR("memerr");
return;
}
INF("realloc add %i + %i", (int)(ty->buflen * sizeof(int)), (int)(len * sizeof(int)));
bytes = len * sizeof(Eina_Unicode);