summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_privacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.h')
-rw-r--r--protocols/JabberG/src/jabber_privacy.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.h b/protocols/JabberG/src/jabber_privacy.h
index aafc779bc9..ef29ce53d2 100644
--- a/protocols/JabberG/src/jabber_privacy.h
+++ b/protocols/JabberG/src/jabber_privacy.h
@@ -69,9 +69,7 @@ public:
};
~CPrivacyListRule()
{
- if (m_szValue)
- mir_free(m_szValue);
-
+ mir_free(m_szValue);
if (m_pNext)
delete m_pNext;
};
@@ -166,8 +164,7 @@ public:
};
~CPrivacyList()
{
- if (m_szListName)
- mir_free(m_szListName);
+ mir_free(m_szListName);
RemoveAllRules();
if (m_pNext)
delete m_pNext;
@@ -341,10 +338,8 @@ public:
};
~CPrivacyListManager()
{
- if (m_szActiveListName)
- mir_free(m_szActiveListName);
- if (m_szDefaultListName)
- mir_free(m_szDefaultListName);
+ mir_free(m_szActiveListName);
+ mir_free(m_szDefaultListName);
RemoveAllLists();
DeleteCriticalSection(&m_cs);
};