release GDI object immediately when a widget is closing
This commit is contained in:
parent
6da703c8fb
commit
2cfc6ee8e6
@ -1820,6 +1820,9 @@ namespace detail
|
|||||||
|
|
||||||
if(wd->other.category != category::flags::root) //Not a root window
|
if(wd->other.category != category::flags::root) //Not a root window
|
||||||
impl_->wd_register.remove(wd);
|
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)
|
void window_manager::_m_move_core(core_window_t* wd, const point& delta)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user