fix a leak (nw)

This commit is contained in:
Miodrag Milanovic 2015-04-20 08:49:04 +02:00
parent 8c2c7994cc
commit ca0b1aaeaa

View File

@ -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);