summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_icolib.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-27 20:51:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-27 20:51:02 +0300
commit3ed57b9844b340d1732d85d76f2184498aba5609 (patch)
treed17753b7a107a413ac2594b2cdedf516b6861a20 /protocols/JabberG/src/jabber_icolib.h
parented499945b795b6890e26430d761012c37c432c62 (diff)
crash fix for Jabber
Diffstat (limited to 'protocols/JabberG/src/jabber_icolib.h')
-rw-r--r--protocols/JabberG/src/jabber_icolib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_icolib.h b/protocols/JabberG/src/jabber_icolib.h
index d30c0ea62a..e272cd7493 100644
--- a/protocols/JabberG/src/jabber_icolib.h
+++ b/protocols/JabberG/src/jabber_icolib.h
@@ -38,8 +38,12 @@ public:
void RegisterIcon(const char *name, wchar_t *filename, int iconid, wchar_t *szSection, wchar_t *szDescription);
HANDLE GetIcolibHandle(const char *name);
- char *GetIcolibName(const char *name);
- HICON GetIcon(const char *name, bool big = false);
+ char* GetIcolibName(const char *name);
+ HICON GetIcon(const char *name, bool big = false);
+
+ __forceinline void Clear()
+ { m_items.destroy();
+ }
private:
struct CPoolItem
@@ -56,7 +60,7 @@ private:
OBJLIST<CPoolItem> m_items;
- CPoolItem *FindItemByName(const char *name);
+ CPoolItem* FindItemByName(const char *name);
};
#endif // _JABBER_ICOLIB_H_