hwhw/kindlepdfviewer — pull request #627 by chrox (2012-11-21 11:27:17+00:00)
Title: bugfix: write cache before a new reflow

Reflowed bitmap should be written to cache before a new reflow is
started because all reflowing processes share the same masterinfo in
libk2pdfopt which contains the data of reflowed bitmap. If a new reflow
is started before a priviously reflowed bitmap is written, the
priviously reflowed bitmap will be corrupted which may cause
segmentation fault when it is written into cache finally.