nouveau/mme: Don't leak data_bo

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30033>
This commit is contained in:
Faith Ekstrand
2024-07-05 14:12:45 -05:00
committed by Marge Bot
parent 7173ae1130
commit c6c4483d0f
+2
View File
@@ -48,6 +48,8 @@ mme_hw_runner::~mme_hw_runner()
{
if (syncobj)
drmSyncobjDestroy(dev->fd, syncobj);
if (data_bo)
nouveau_ws_bo_destroy(data_bo);
if (push_bo) {
nouveau_ws_bo_unmap(push_bo, push_map);
nouveau_ws_bo_destroy(push_bo);