also fix a use of uninitialised pointer
return ret;
}
-#if 0
void intel_bo_free_list(struct intel_bo_list *list)
{
struct intel_bo_node *node;
list->numCurrent--;
}
}
-#endif
static int intel_bo_reset_list(struct intel_bo_list *list)
{
list->numTarget = numTarget;
list->numCurrent = 0;
list->numOnList = 0;
- if (list->destroy)
+ if (destroy)
list->destroy = destroy;
else
list->destroy = generic_destroy;
{
dri_bufmgr_ttm *bufmgr_ttm = (dri_bufmgr_ttm *)bufmgr;
+ intel_bo_free_list(&bufmgr_ttm->list);
+ intel_bo_free_list(&bufmgr_ttm->reloc_list);
+
_glthread_DESTROY_MUTEX(bufmgr_ttm->mutex);
free(bufmgr);
}