From: Bert Vermeulen Date: Sun, 28 Apr 2013 20:35:42 +0000 (+0200) Subject: Don't try to close devices when removing them from the session X-Git-Tag: dsupstream~31 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=681803dfdeeaae66c48d6c45da194be0c6789deb;p=libsigrok.git Don't try to close devices when removing them from the session That's the frontend's job. --- diff --git a/session.c b/session.c index 2ea7dbef..26620725 100644 --- 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;