Don't free trigger when destroying the session.

The trigger must be freed by the client.
This commit is contained in:
Bert Vermeulen 2015-09-08 14:25:10 +02:00 committed by Uwe Hermann
parent 4512ccd36c
commit 1e7659609b
1 changed files with 0 additions and 2 deletions

View File

@ -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);