Don't free trigger when destroying the session.
The trigger must be freed by the client.
This commit is contained in:
parent
4512ccd36c
commit
1e7659609b
|
@ -125,8 +125,6 @@ SR_API int sr_session_destroy(struct sr_session *session)
|
|||
|
||||
sr_session_dev_remove_all(session);
|
||||
g_mutex_clear(&session->stop_mutex);
|
||||
if (session->trigger)
|
||||
sr_trigger_free(session->trigger);
|
||||
|
||||
g_slist_free_full(session->owned_devs, (GDestroyNotify)sr_dev_inst_free);
|
||||
|
||||
|
|
Loading…
Reference in New Issue