Fix bug #7384 - dptr_Close has a bitmap leak.