summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-01 18:53:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-01 18:53:46 +0000
commite47e740b5138c81b7ddac61e99fa8bb9a39a3559 (patch)
treea94cf01cff15397f1b0959a0f7dbc6e013d34a4a /protocols/JabberG
parent08dc0f0af530f082093315d61ecb2377a410e88c (diff)
useless icon copying removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@7447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 3eb45ebe43..c47cf3eb90 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -233,14 +233,12 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM)
HookProtoEvent(ME_GC_EVENT, &CJabberProto::JabberGcEventHook);
HookProtoEvent(ME_GC_BUILDMENU, &CJabberProto::JabberGcMenuHook);
- HICON hIcon = LoadIconEx("main");
StatusIconData sid = { sizeof(sid) };
sid.szModule = m_szModuleName;
- sid.hIcon = CopyIcon(hIcon);
+ sid.hIcon = LoadIconEx("main");
sid.flags = MBF_HIDDEN;
sid.szTooltip = LPGEN("Jabber Resource");
Srmm_AddIcon(&sid);
- Skin_ReleaseIcon(hIcon);
HookProtoEvent(ME_MSG_ICONPRESSED, &CJabberProto::OnProcessSrmmIconClick);
HookProtoEvent(ME_MSG_WINDOWEVENT, &CJabberProto::OnProcessSrmmEvent);