提交 0bc9d07e 编写于 作者: D dmarkov

8155001: SystemTray.remove() leaks GDI Objects in Windows

Reviewed-by: serb, alexp
上级 d4744cc0
......@@ -93,6 +93,12 @@ AwtTrayIcon::~AwtTrayIcon() {
void AwtTrayIcon::Dispose() {
SendTrayMessage(NIM_DELETE);
// Destroy the icon to avoid leak of GDI objects
if (m_nid.hIcon != NULL) {
::DestroyIcon(m_nid.hIcon);
}
UnlinkObjects();
if (--sm_instCount == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册