gpu: Use common cleanup function

Just simple cleanup, both functions do the same thing.
This commit is contained in:
Benjamin Otte 2024-08-26 04:54:09 +02:00
parent 65c8320a32
commit ea9b47f1b6

View File

@ -280,8 +280,7 @@ release_dmabuf_texture (gpointer data)
{
Texture *texture = data;
for (unsigned int i = 0; i < texture->dmabuf.n_planes; i++)
g_close (texture->dmabuf.planes[i].fd, NULL);
gdk_dmabuf_close_fds (&texture->dmabuf);
g_free (texture);
}
#endif