Fixed a stale pointer bug, first discovered by jonasw in the testsuite on MacOS X. Rev: src/mapping.c:1.140