summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index 69051e4afb..1b3a9d9d38 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -302,7 +302,12 @@ private:
void ProcessThreadUpdate (const JSONNode &node);
// utils
- static void FreeCharList(const LIST<char> &lst);
+ template <typename T>
+ __inline static void FreeList(const LIST<T> &lst)
+ {
+ for (int i = 0; i < lst.getCount(); i++)
+ mir_free(lst[i]);
+ }
__forceinline bool IsOnline()
{ return (m_iStatus > ID_STATUS_OFFLINE && m_hPollingThread);