23 Jun
2022
23 Jun
'22
3:06 p.m.
Zhiyi Zhang (@zhiyi) commented about dlls/win32u/sysparams.c:
break; }
+ is_cloned = FALSE; + LIST_FOR_EACH_ENTRY(monitor2, &monitors, struct monitor, entry) + { + if (EqualRect(&monitor2->rc_monitor, &monitor->rc_monitor)) + { + is_cloned = TRUE; + break; + } + } + + if (is_cloned) + continue;
If the monitor to be added is the last monitor and is a cloned replica, this will leak the monitor pointer. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/303#note_2552