[bugfix] do not fuse end-of-page block into other blocks

This commit is contained in:
Yuichi Nishiwaki 2013-11-28 21:58:25 +09:00
parent 24a6f54bc4
commit 5656590fa0
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ gc_free(pic_state *pic, union header *p)
break;
}
}
if (p + p->s.size == bp->s.ptr) {
if (p + p->s.size == bp->s.ptr && bp->s.ptr->s.size > 0) {
p->s.size += bp->s.ptr->s.size;
p->s.ptr = bp->s.ptr->s.ptr;
}