session: Free session-wide trigger if set.

This commit is contained in:
Bert Vermeulen 2014-05-28 15:46:43 +02:00
parent 2fe8049447
commit 3d68b6126d
1 changed files with 2 additions and 3 deletions

View File

@ -106,10 +106,9 @@ SR_API int sr_session_destroy(void)
}
sr_session_dev_remove_all();
/* TODO: Error checks needed? */
g_mutex_clear(&session->stop_mutex);
if (session->trigger)
sr_trigger_free(session->trigger);
g_free(session);
session = NULL;