diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-11-27 16:20:32 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-11-28 09:25:39 +0100 |
commit | 4ec3d67da829f4e7a35ab08427002b9d7e4e5f4b (patch) | |
tree | a5fae4115dff22fdee176464fb7ac9da91f92a9d /vmwgfx/vmwgfx_driver.c | |
parent | 71c85a70f1c5ff93e931181d0858af22cba231ec (diff) |
vmwgfx: Fix XVideo memory leaks
We were not properly freeing the port privates.
In order to access those at CloseScreen time, don't free the adaptor pointers
at XV screen init, but hold on to them until CloseScreen.
Also properly free the new_adaptors pointer.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'vmwgfx/vmwgfx_driver.c')
-rw-r--r-- | vmwgfx/vmwgfx_driver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vmwgfx/vmwgfx_driver.c b/vmwgfx/vmwgfx_driver.c index 665f620..ccddb6f 100644 --- a/vmwgfx/vmwgfx_driver.c +++ b/vmwgfx/vmwgfx_driver.c @@ -1327,6 +1327,8 @@ drv_close_screen(CLOSE_SCREEN_ARGS_DECL) pScrn->LeaveVT(VT_FUNC_ARGS); vmwgfx_uevent_fini(pScrn, ms); + vmw_xv_close(pScreen); + pScrn->vtSema = FALSE; vmwgfx_unwrap(ms, pScrn, EnterVT); |