koreader/koreader — pull request #1228 by hwhw (2014-11-22 14:45:52+00:00)
Title: wait for background thread before free()ing koptcontext

This should prevent freeing resources that are actually in use in
a background thread. See #1224 for a manifestation of that bug.