diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-27 20:51:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-27 20:51:02 +0300 |
commit | 3ed57b9844b340d1732d85d76f2184498aba5609 (patch) | |
tree | d17753b7a107a413ac2594b2cdedf516b6861a20 /protocols/JabberG/src/jabber_icolib.h | |
parent | ed499945b795b6890e26430d761012c37c432c62 (diff) |
crash fix for Jabber
Diffstat (limited to 'protocols/JabberG/src/jabber_icolib.h')
-rw-r--r-- | protocols/JabberG/src/jabber_icolib.h | 10 |
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_
|