1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

vo_gpu/d3d11: fix memleak of the adapter description string

This commit is contained in:
Jan Ekström 2019-10-14 20:21:52 +03:00
parent 03e7a36a73
commit eaa3c1c922

View File

@ -209,10 +209,14 @@ static IDXGIAdapter1 *get_d3d11_adapter(struct mp_log *log,
requested_adapter_name))
{
picked_adapter = adapter;
break;
}
talloc_free(adapter_description);
if (picked_adapter) {
break;
}
SAFE_RELEASE(adapter);
}