diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chat_session.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/chat_session.c b/src/chat_session.c index 281f4b96..2cb3091b 100644 --- a/src/chat_session.c +++ b/src/chat_session.c @@ -266,15 +266,11 @@ static void _chat_session_free(ChatSession session) { if (session != NULL) { - if (session->recipient != NULL) { - g_free(session->recipient); - session->recipient = NULL; - } + free(session->recipient); if (session->active_timer != NULL) { g_timer_destroy(session->active_timer); session->active_timer = NULL; } - g_free(session); + free(session); } - session = NULL; } |