mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
fix a leak (nw)
This commit is contained in:
parent
8c2c7994cc
commit
ca0b1aaeaa
@ -135,6 +135,8 @@ void win_monitor_info::refresh()
|
|||||||
|
|
||||||
if (temp) strncpy(m_name, temp, sizeof(m_name));
|
if (temp) strncpy(m_name, temp, sizeof(m_name));
|
||||||
|
|
||||||
|
osd_free(temp);
|
||||||
|
|
||||||
m_pos_size = RECT_to_osd_rect(m_info.rcMonitor);
|
m_pos_size = RECT_to_osd_rect(m_info.rcMonitor);
|
||||||
m_usuable_pos_size = RECT_to_osd_rect(m_info.rcWork);
|
m_usuable_pos_size = RECT_to_osd_rect(m_info.rcWork);
|
||||||
m_is_primary = ((m_info.dwFlags & MONITORINFOF_PRIMARY) != 0);
|
m_is_primary = ((m_info.dwFlags & MONITORINFOF_PRIMARY) != 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user