summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-modelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-modelist.c')
-rw-r--r--src/plugins/irc/irc-modelist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-modelist.c b/src/plugins/irc/irc-modelist.c
index 72fa0ade6..c84013518 100644
--- a/src/plugins/irc/irc-modelist.c
+++ b/src/plugins/irc/irc-modelist.c
@@ -323,10 +323,8 @@ irc_modelist_item_free (struct t_irc_modelist *modelist,
(item->next_item)->prev_item = item->prev_item;
/* free item data */
- if (item->mask)
- free (item->mask);
- if (item->setter)
- free (item->setter);
+ free (item->mask);
+ free (item->setter);
free (item);
modelist->items = new_items;