Fix mapCount refcounting on unmap, even though the value is unused.
authorEric Anholt <eric@anholt.net>
Fri, 21 Sep 2007 22:58:02 +0000 (15:58 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Sep 2007 22:58:02 +0000 (15:58 -0700)
libdrm/xf86drm.c

index 63242bce982403164f8e9784e9d6d14f0b94e17e..0849f89697a296f8631df109a12c5a1e1389cb2d 100644 (file)
@@ -2874,6 +2874,7 @@ int drmBOUnmap(int fd, drmBO *buf)
     if (ioctl(fd, DRM_IOCTL_BO_UNMAP, &arg)) {
        return -errno;
     }
+    buf->mapCount--;
     return 0;
 }