added resources release to connetion handler

This commit is contained in:
Dmitry Podgorny
2013-01-07 22:13:24 +02:00
parent 5542752afb
commit 0f0e04603a
2 changed files with 8 additions and 2 deletions

View File

@@ -63,7 +63,8 @@ chat_sessions_init(void)
void
chat_sessions_clear(void)
{
g_hash_table_remove_all(sessions);
if (sessions != NULL)
g_hash_table_remove_all(sessions);
}
void