session: Fix invalid session_hash in cleanup path
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 14:56:18 +0000 (16:56 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 11 Aug 2011 15:40:52 +0000 (17:40 +0200)
src/session.c

index 0adc44b..eae623e 100644 (file)
@@ -1721,6 +1721,7 @@ void __connman_session_cleanup(void)
 
        g_hash_table_foreach(session_hash, release_session, NULL);
        g_hash_table_destroy(session_hash);
+       session_hash = NULL;
 
        dbus_connection_unref(connection);
 }