]> sigrok.org Git - libsigrok.git/commitdiff
Don't free trigger when destroying the session.
authorBert Vermeulen <redacted>
Tue, 8 Sep 2015 12:25:10 +0000 (14:25 +0200)
committerUwe Hermann <redacted>
Tue, 8 Sep 2015 13:44:47 +0000 (15:44 +0200)
The trigger must be freed by the client.

src/session.c

index 3b8423d7081abebbf8993606cd4d0bb63dc63f90..58be444605e985109ec385c76a33be08eb0fb6a3 100644 (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);