1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

removed assignment to NULL in _chat_session_free

This commit is contained in:
Dmitry Podgorny 2013-08-03 15:31:54 +03:00
parent 3c385e0aaa
commit 9e09284302

View File

@ -266,15 +266,11 @@ static void
_chat_session_free(ChatSession session) _chat_session_free(ChatSession session)
{ {
if (session != NULL) { if (session != NULL) {
if (session->recipient != NULL) { free(session->recipient);
g_free(session->recipient);
session->recipient = NULL;
}
if (session->active_timer != NULL) { if (session->active_timer != NULL) {
g_timer_destroy(session->active_timer); g_timer_destroy(session->active_timer);
session->active_timer = NULL; session->active_timer = NULL;
} }
g_free(session); free(session);
} }
session = NULL;
} }