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:
parent
3c385e0aaa
commit
9e09284302
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user