renderer: check detach_iov interface

check the return values aren't NULL
macos/master
Dave Airlie 10 years ago
parent eedc194402
commit 6a2d49f37a
  1. 6
      src/vrend_renderer.c

@ -3307,8 +3307,10 @@ void vrend_renderer_resource_detach_iov(int res_handle,
if (!res) { if (!res) {
return; return;
} }
*iov_p = res->iov; if (iov_p)
*num_iovs_p = res->num_iovs; *iov_p = res->iov;
if (num_iovs_p)
*num_iovs_p = res->num_iovs;
res->iov = NULL; res->iov = NULL;
res->num_iovs = 0; res->num_iovs = 0;

Loading…
Cancel
Save