mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
Merge branch 'dev_reportEventA2' into 'master'
wined3d: Fix a memory leak. See merge request wine/wine!6211
This commit is contained in:
commit
03fa512937
1 changed files with 1 additions and 0 deletions
|
@ -1286,6 +1286,7 @@ static BOOL wined3d_context_gl_set_gl_context(struct wined3d_context_gl *context
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
wined3d_release_dc(context_gl->window, context_gl->dc);
|
||||
if (!(context_gl->dc = wined3d_device_gl_get_backup_dc(device_gl)))
|
||||
{
|
||||
wined3d_context_gl_set_current(NULL);
|
||||
|
|
Loading…
Reference in a new issue