session: Free session-wide trigger if set.
This commit is contained in:
parent
2fe8049447
commit
3d68b6126d
|
@ -106,10 +106,9 @@ SR_API int sr_session_destroy(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
sr_session_dev_remove_all();
|
sr_session_dev_remove_all();
|
||||||
|
|
||||||
/* TODO: Error checks needed? */
|
|
||||||
|
|
||||||
g_mutex_clear(&session->stop_mutex);
|
g_mutex_clear(&session->stop_mutex);
|
||||||
|
if (session->trigger)
|
||||||
|
sr_trigger_free(session->trigger);
|
||||||
|
|
||||||
g_free(session);
|
g_free(session);
|
||||||
session = NULL;
|
session = NULL;
|
||||||
|
|
Loading…
Reference in New Issue