release GDI object immediately when a widget is closing

This commit is contained in:
Jinhao 2017-08-14 01:00:14 +08:00
parent 6da703c8fb
commit 2cfc6ee8e6

View File

@ -1820,6 +1820,9 @@ namespace detail
if(wd->other.category != category::flags::root) //Not a root window
impl_->wd_register.remove(wd);
//Release graphics immediately.
wd->drawer.graphics.release();
}
void window_manager::_m_move_core(core_window_t* wd, const point& delta)