]> sigrok.org Git - libsigrok.git/commitdiff
Don't try to close devices when removing them from the session
authorBert Vermeulen <redacted>
Sun, 28 Apr 2013 20:35:42 +0000 (22:35 +0200)
committerBert Vermeulen <redacted>
Sun, 28 Apr 2013 20:35:42 +0000 (22:35 +0200)
That's the frontend's job.

session.c

index 2ea7dbef29e50fcc64ab2c9876f2f62e8767e0de..266207259ca3c82e9c42c76208af3ae8afb88880 100644 (file)
--- a/session.c
+++ b/session.c
@@ -131,7 +131,7 @@ SR_API int sr_session_dev_remove_all(void)
                return SR_ERR_BUG;
        }
 
-       g_slist_free_full(session->devs, (GDestroyNotify)sr_dev_close);
+       g_slist_free(session->devs);
        session->devs = NULL;
 
        return SR_OK;