Revert "Fix hang in OOM situations"

This reverts commit f0599db761.

Commit abadc1717d provides a better
fix for this.
This commit is contained in:
Behdad Esfahbod 2015-11-19 11:59:03 -08:00
parent 18e1c6b6ef
commit 13188cba7f
1 changed files with 1 additions and 5 deletions

View File

@ -174,11 +174,7 @@ struct hb_buffer_t {
if (have_output)
{
if (unlikely (out_info != info || out_len != idx)) {
if (unlikely (!make_room_for (1, 1)))
{
idx++; // So we don't hang indefinitely...
return;
}
if (unlikely (!make_room_for (1, 1))) return;
out_info[out_len] = info[idx];
}
out_len++;