mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
fix a leak (nw)
This commit is contained in:
parent
8c2c7994cc
commit
ca0b1aaeaa
@ -134,6 +134,8 @@ void win_monitor_info::refresh()
|
||||
char *temp = utf8_from_tstring(m_info.szDevice);
|
||||
|
||||
if (temp) strncpy(m_name, temp, sizeof(m_name));
|
||||
|
||||
osd_free(temp);
|
||||
|
||||
m_pos_size = RECT_to_osd_rect(m_info.rcMonitor);
|
||||
m_usuable_pos_size = RECT_to_osd_rect(m_info.rcWork);
|
||||
|
Loading…
Reference in New Issue
Block a user