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:
parent
03e7a36a73
commit
eaa3c1c922
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user