From: Bert Vermeulen Date: Tue, 8 Sep 2015 12:25:10 +0000 (+0200) Subject: Don't free trigger when destroying the session. X-Git-Tag: libsigrok-0.4.0~324 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e7659609bddd40471faf9a8e81ee7554d77dce9;p=libsigrok.git Don't free trigger when destroying the session. The trigger must be freed by the client. --- diff --git a/src/session.c b/src/session.c index 3b8423d7..58be4446 100644 --- a/src/session.c +++ b/src/session.c @@ -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);