From 3558df8884c9f3801cbffce4335910bdafb22368 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 11 Jan 2013 23:57:03 +0000 Subject: [PATCH] Added subject to chat room --- src/room_chat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/room_chat.c b/src/room_chat.c index c5af7402..c50eb80b 100644 --- a/src/room_chat.c +++ b/src/room_chat.c @@ -31,6 +31,7 @@ typedef struct _muc_room_t { char *room; char *nick; + char *subject; gboolean pending_nick_change; GHashTable *roster; PAutocomplete nick_ac; @@ -365,6 +366,10 @@ _room_free(muc_room *room) g_free(room->nick); room->nick = NULL; } + if (room->subject != NULL) { + g_free(room->subject); + room->subject = NULL; + } if (room->roster != NULL) { g_hash_table_remove_all(room->roster); room->roster = NULL;