mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vo_gpu/d3d11: fix memleak of the adapter description string
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user