diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-01 16:38:01 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-01 16:38:01 +0000 |
commit | bcf7519882ba6f7b8f4b8047fb1f94bc9bd1ec6e (patch) | |
tree | d1442f846e9e46edac46d692f6044b9b1c85e660 /pdf | |
parent | c6aa389a2c3430396a5e818bbb849410ab29d617 (diff) | |
download | mupdf-bcf7519882ba6f7b8f4b8047fb1f94bc9bd1ec6e.tar.xz |
Fix incorrect handling of race condition.
When inserting an item into the store we check for an identically
keyed item being there already (for instance a pixmap created from
an image I at factor F may find that such a pixmap has already been
inserted). The correct thing to do is to return the old one so we
can use that in preference.
The code was attempting to do this, but was returning a pointer
to the fz_item rather than to the item->val. Fixed here.
Diffstat (limited to 'pdf')
0 files changed, 0 insertions, 0 deletions