bugfix: get rid of memory leak in koptreader

Memory leak came from the master bitmap that is reused in each reflow. But the bitmap
width and height were not set to zero when bitmap was freed. When the master bitmap was
enlarged in some cases the size of the master bitmap would increase monotonically.
This patch fixes this issue by setting master bitmap width and height to zero at the
beginning of each reflow. And a memeory usage logger is added in koptreader.
This commit is contained in:
chrox
2012-11-21 20:34:00 +08:00
parent 6ac2f69805
commit b8131a1906