Fixed OOM reported by huxi.
3 files changed