about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-07 01:14:12 +0100
committerJames Booth <boothj5@gmail.com>2016-04-07 01:14:12 +0100
commitbdb1287a4f36b5b378a6ea5cf563a8cbb29badcd (patch)
tree72ea2878f018780522aadfd7e05e8c08df50124b /src/event
parentf243e333fcb6740ff8d09cc04db27d88040f5f7d (diff)
downloadprofani-tty-bdb1287a4f36b5b378a6ea5cf563a8cbb29badcd.tar.gz
Free mentions list
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 76c649cd..c9f18670 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -266,6 +266,8 @@ sv_ev_room_message(const char *const room_jid, const char *const nick, const cha
 
     mucwin_message(mucwin, nick, new_message, mentions, triggers);
 
+    g_slist_free(mentions);
+
     ProfWin *window = (ProfWin*)mucwin;
     int num = wins_get_num(window);
     gboolean is_current = FALSE;